Vulnerability Development mailing list archives

Re: GetPC code (was: Shellcode from ASCII)


From: Gerardo Richarte <gera () corest com>
Date: Mon, 30 Jun 2003 11:30:14 -0300

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?




Current thread: