Re: GetPC code (was: Shellcode from ASCII)
From: Gerardo Richarte (gera_at_corest.com)
Date: 06/30/03
- Previous message: Gerardo Richarte: "Re: GetPC code (was: Shellcode from ASCII)"
- Maybe in reply to: Gerardo Richarte: "Re: GetPC code (was: Shellcode from ASCII)"
- Next in thread: Costin Ionescu: "Re: GetPC code (was: Shellcode from ASCII)"
- Reply: Costin Ionescu: "Re: GetPC code (was: Shellcode from ASCII)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 30 Jun 2003 11:30:14 -0300 To: vuln-dev@securityfocus.com
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?
- Previous message: Gerardo Richarte: "Re: GetPC code (was: Shellcode from ASCII)"
- Maybe in reply to: Gerardo Richarte: "Re: GetPC code (was: Shellcode from ASCII)"
- Next in thread: Costin Ionescu: "Re: GetPC code (was: Shellcode from ASCII)"
- Reply: Costin Ionescu: "Re: GetPC code (was: Shellcode from ASCII)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]