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:
![[Image: snapshot1-5.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot1-5.png)
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:
![[Image: snapshot2-5.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot2-5.png)
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:
![[Image: snapshot3-7.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot3-7.png)
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:
![[Image: snapshot4-5.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot4-5.png)
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
![[Image: snapshot5-6.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot5-6.png)
Open a new terminal window and type python 123.py and your python exploit will run
![[Image: snapshot7-4.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot7-4.png)
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:
![[Image: snapshot6-3.png]](http://i205.photobucket.com/albums/bb181/1-VIP-/snapshot6-3.png)
This is pretty much the basic's on compiling exploits, it is rather simple, hope you have enjoyed.
0 komentar:
Posting Komentar