Adding More Exploits In Kali Installation.
Exploit Database knowtechno.com |
Visit Here For Much Better And Easier Way. or Here!
Exploit-db
From the Devs.
The Exploit Database (EDB) is a CVE compliant archive of exploits and vulnerable software. A great resource for penetration testers, vulnerability researchers, and security addicts alike. Our goal is to collect exploits from various sources and concentrate them in one, easy to navigate database.
What really is exploit-db?
It is simply a database of all the exploits developed till now and they keep updating regularly. Here pentesters write an exploit for the known vulnerability and then they upload their work on the exploit-db for other pentesters to see.The whole site is fully maintained by Offensive Security, they are the mind behind Backtrack, Kali, Metasploit Unleashed etc.the layout of the site is easy enough to navigate and download the desired updated exploits but just downloading them will not do the trick you will have to integrate it to the metasploit framework to make it work.Lets get to the topic how to get those updated modules:
Now sometimes what a user needs to do is just update the present metasploit framework to get the latest modules without messing up.Just type in the command:
msfupdate
Hopefully this will update the framework with the latest modules.
But if the above method fails the second alternate is to put the exploits manually in the exploit directory after downloading from the exploit-db.
The downloaded exploit should be placed into the directory /.msf4/modules/exploit/
any exploits placed here will be detected by the metasploit framework and the next time you type use /exploit/exploit_name it will come up.
Note:You can choose any name in place of and it is also very important to use proper directory structure or else the exploit will not work and one more thing the exploit should be put in the sub directory of the ~/.msf4/modules/exploit/ or the exploit may not be detected by the framework.
Downloading the exploit from the Exploit-db:
For example purpose I will be using here Apache Jetspeed Arbitrary exploit from https://www.exploit-db.com/exploits/39643/ what you need to do is to click on the source button in the download exploit part as shown below.And save the file to local directory.
Now for the downloaded exploit to work we have to move it to the directory of metasploit framework.
You should know yourself on how to do this but I am showing the steps involved for the newbies there.
1. The Command Line Method:
For command line method you will need to know about two commands which are going to do all the work here a.> mkdir b.>cp
Now type the commands given one by one.
mkdir -p ~/.msf4/modules/exploits/browser/apache
Note:Here you can choose you desired name for the directories but you will need to remember to use the exploit
Now comes the moving exploit part and for that meet and say hi to "cp" command. Now type in the following command to move the downloaded file to desired location.
cp /home/knowtechno/Downloads/39643.rb ~/.msf4/modules/exploits/browser/apache
For root directory:
cp 39643.rb ~/.msf4/modules/exploits/browser/apache
cd ~/.msf4/modules/exploits/browser/apache
ls
ls
It will show the list of files and folders in the directory if the moved file name is present in the list then you are done and the exploit is ready to be used with metasploit framework.
2. GUI Methods (Easy method for noob):
2. Open The folder modules->exploits and create a directory there named what ever you want I am using browser for example purpose open that folder and create another folder named apache or anything you like.
3. Now copy the file downloaded and before from the exploit-db and paste it in the "~/.msf4/modules/exploits/browser/apache" and done. Now restart the msfconsole or type in reload_all in the terminal this will add any new module/modules placed in the directory.
I Hope the info was good enough and please let me know if any doubts in the comments.
Comments
Post a Comment