galda
January 23rd, 2010, 22:09
Hi,
I've fuzzed a program and found a stack overflow, after 90 bytes I was able to write to the EIP and there is alot of space for the shellcode, so my stack looks like that:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
[4 bytes of EIP]
\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90
\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90
\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90
SHELLCODE
now esp is pointing to the start of the nop sled address but when I use a JUMP ESP in the EIP I get a jump not exactly to the start of the nop sled...I used few different jumps from kernel32 and user32 and still it looks like the jump points me few bytes before the start of the nopsled...any idea why? the one that would help me would get a credit after I'll publish it
tnx.
I've fuzzed a program and found a stack overflow, after 90 bytes I was able to write to the EIP and there is alot of space for the shellcode, so my stack looks like that:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
[4 bytes of EIP]
\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90
\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90
\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90
SHELLCODE
now esp is pointing to the start of the nop sled address but when I use a JUMP ESP in the EIP I get a jump not exactly to the start of the nop sled...I used few different jumps from kernel32 and user32 and still it looks like the jump points me few bytes before the start of the nopsled...any idea why? the one that would help me would get a credit after I'll publish it

tnx.