OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: GetPC code (was: Shellcode from ASCII)

From: Gerardo Richarte (geracorest.com)
Date: Mon Jun 30 2003 - 09:30:14 CDT


noir wrote:

> i have spend good 20 minutes on this, i don't have the solution yet due to
> lack of time but i thought this might be interesting for the list.
>
> xor %eax, %eax
> push %eax
> fdivs (%esp)
> fnstenv (%esp)
> mov 0xc(%esp), %eax
> add $0xd, %eax
> nop

    noir: you are the man!!! When I saw your name in the inbox, I knew there
was going to be a good answer!

    this code is great! no zeros and no 0xff !

    and works, of course :-)

    gera

> sup mate ? ;)

    not much, as usual :-) you?