Today I will show you how to compile exploit scripts that you can download from the web and execute them, its alot easier than you think and I will demonstrate this:
We will start with a Perl exploit, Remember I am doing this on Linux and this may differ from Windows.
First of, locate your exploit:
Save it exploit.pl or whatever, and place it on /root/ this is the desktop command for linux, when you have the file saved and placed on /root/ open a shell terminal, once you have done this type perl exploit.pl and you will get a screen like below:
Voila it ran.
Now lets download and run a C exploit, this is different that other exploits as it compiles into an executable before it is run, first of download your C exploit:
Save it on /root/ and type gcc exploitname.c and you will notice it has created an executable on the desktop called a.out, this is the c exploit compiled now its just time to run it, type ./a.outand you will get a screen like below:
You have just compiled and run a C exploit, not so hard was it ;).
Now lets find a nice python exploit, locate it on milw0rm or which ever site you desire, save it 123.py
Open a new terminal window and type python 123.py and your python exploit will run
As easy as that.
Lets run a PHP exploit, again locate the suitable exploit online, save it whateveryoulike.php put it on /root/ and open a new terminal window, once here type php myexploit.php and you will get results like below:
This is pretty much the basic's on compiling exploits, it is rather simple, hope you have enjoyed.
0 komentar:
Posting Komentar