Shellcodes: I cannot execute them :(
Hello everyone,
I've just started my "buffer overflow study" :D... To begin, I thought it was a good idea to compile and understand some generic shellcodes, like whose we find on millw0rm.
Anyway, I took this one:
giving me a stupid shell...
What a surprise when I compiled it and saw that nothing happened ! So why ? I tried to debug it, but without success :/.
For information, I've GCC i686-pc-linux-gnu-4.1.1, and I compiled my shellcode with
gcc -o shell shell.c -Wall -g (-pedantic)
Thank you for your help !
bulk'
Re: Shellcodes: I cannot execute them :(
Quote:
Originally posted here by bulkangel
...
What a surprise when I compiled it and saw that nothing happened ! So why ? I tried to debug it, but without success :/.
Don't be surprised by that. It is a fairly common practice to toss errors in, remove lines of code, etc. Helps reduce the likelyhood that the skiddies can just c/p. In this case though, it looks like just sloppiness....
:D