A quarter of posts on our great board are people, often people new in the security or hacking scene, stating that they are having problems compiling exploit code that a member has posted on the thread. People post this time after time after time, and although we like helping, it gets very tiresome. Here is the reason you are likely not able to compile the exploits:
THE EXPLOIT IS WRITTEN TO BE COMPILED ON A UNIX-LIKE OS
I repeat: THE CODE IS *NOT* FOR WINDOWS
Most exploit code is written to be compiled on UNIX-like OSes, but a few of Kralor's exploits are for Windows. Here is how to spot UNIX code:
HEADER FILES LIKE "sys/socket.h" and "netinet/in.h" are present in the includes.
Now, if you are that desperate to run the code, but do not want to move to Linux, or *BSD, get Cygwin, and use 'gcc' to compile the exploit.
Then, providing you have installed it correctly, you can type 'gcc' at the BASH prompt:
bash$ gcc sploit.c -o sploit bash$ ./sploit target.com 21 -o 0xbfff45 crackedbox# echo "r00t::0:0:0wned:/root:/bin/sh" >> /etc/passwd crackedbox# echo "w00t, I own you!" > /dev/tty1Okay, so a little cheesy, but you get my point.
Experiment, use cygwin, move to Linux even (I've heard knoppix is good for those who don't want to install Linux on their hard disk).
Hacking is all about using your mind to achieve goals - remember this guys. Use your head, be a hacker.
Thank you for your time.