Guide to compile Exploits
Do you like this story?
An exploit is a piece of software, a chunk of data, or sequence of commands that take advantage of a bug, glitch or vulnerability in order to cause unintended or unanticipated behavior to occur on computer software, hardware, or something electronic (usually computerized).This frequently includes such things as violently gaining control of a computer system or allowing privilege escalation or a denial of service attack.A ' remote exploit ' works over a network and exploits the security vulnerability without any prior access to the vulnerable system. A ' local exploit ' requires prior access to the vulnerable system and usually increases the privileges of the person running the exploit past those granted by the system administrator.Exploit is a code built in C, VB or other language etc that takes advantage of an open port or a vulnerability.This guide will teach you how to compile an exploit in cygwin.
In the following steps I will show you how to compile an exploit using a port 5000 exploit, but you can do the same for other ports just download their exploit from:
- Google.com
- Securiteam.com
- K-otik.com
- Astalavista.box.sk
- Coromputer.net
- Securityfocus.com
Step 1
Download port 5000 exploit, usually the exploits come as .txt and you need to change them to .c
Download: http://planet.nana.co.il/progroup/exploits/5000e.zipAfter downloading and extracting the port 5000 Exploit we need to compile it (covert it to .exe), In order to compile the exploit we need the \"Cygwin\" program.
Download: http://sources.redhat.com/cygwin/setup.exeStep 2
Open the Cygwin setup.exe and install it by the following pictures:
Step 3
After installing the program we need to compile the exploit, place the 5000.c exploit in C:\\cygwin\\bin then run the command line from
Start -> Run -> cmdin the command prompt type:
CD c:\\cygwin\\binOr follow the picture:
gcc 5000.c -o 5000.exe
(CD = Open)
Step 4
After we finshed to compiled the exploit we can use it! =) . In order to connect the the victims computer that has port 5000 open in this case..
Open the command line by
Start –> Runthen type:
CD c:\\cygwin\\binOr follow by the picture:
5000.exe XXX.XXX.XXX.XXX –e
(XXX.XXX.XXX.XXX = Victim\'s IP address)
and congrats..You are connected !!!
NOTE -
- For C and C++ under windows use Bloodshed or another windows compiler.
- For C under linux use gcc. gcc -o exploit.c exploit
- For perl for windows go download active perl and usage is: perl exploit.pl
- For perl under linux use: perl exploit.pl
- For .sh under linux use: source exploit.sh
WARNING / DISCLAIMER / Whatever You think -
Compromising security and hacking are illegal in many countries.Use the above knowledge at your on risk.In short,keep it low.
Or you can read this article - Things you should not do - (Saving ur Ass from FBI)
Cheers and Keep Learning.
Posted by XERO . DARKTRX .ALL RIGHTS RESERVED .

About the author : Rishabh Dangwal
Rishabh Dangwal is a no-nonsense network geek who has got a thing for guitars, retro games and emulators. When he is not tinkering with devices and gadgets, he can be found reading novels by Fredrick Forsyth. Follow him on Twitter
3 Responses to “Guide to compile Exploits”
February 23, 2009 3:21 AM
Every time I try to connect to an IP it waits a few seconds and then it says the connection has timed out. How do I fix this?
February 23, 2009 12:19 PM
Hi B3h3moth
Are your sure that the IP you are pinging is alive or not ? use an IP scanner to find if its alive like Angry IP scanner. Also check if your firewall allows CYGWIN to send data packets to the requested IP.Also,if possible check if your Target has an external firewall like Zonealarm installed which will block the Port 5000 UPNP vulnerability attack.
I wish you luck.
X.E.R.O
June 28, 2010 8:36 PM
Hi, please upload the 5000.c file to mediafire or something , tnx.
Post a Comment
Need to say something ? Spell it out :)