Hey Folks, in this tutorial we are going to talk about the SearchSploit tool. This tool is specially designed for CTF players, where they can easily find the exploits with the command line.
SearchSploit
Searchsploit is a (CLI) tool for find the exploits, which also allows you to bring a copy of Exploit-DB with you. SearchSploit provides you with the ability to perform detailed offline searches in locally saved repositories. Many vulnerabilities contain links to binary files that are not included in the standard repository but can be found in our Exploit-DB binaries.
Lets do it 🙂 !!
Installations and Updates
If you doesn’t have this tool you can download it by using the following command.
1 | sudo apt -y install exploitdb |
After installation is complete we can execute it from any location of our terminal.
1 | searchsploit |
If your tool is out dated then you can use “-u” option which will automatically update your tool.
1 | searchsploit -u |
Basic search
We can just type in anything we want to see and it will give us all the results that will be related to that word.
1 | searchsploit afd windows local |
Lets take another example and try to find wordpress all vulnerable plugins.
Find Exploits
We can use the following command to get all the exploits.
1 | searchsploit Multi Scheduler 1.0 |
CVE
In this attempts we will try to find the exploit with CVE number.
1 | searchsploit 37200 |
Exploit-DB Online
If we want to get more information about the exploits then we have to go on google to find them but by using this command we can find the exploits links directly.
1 | searchsploit Multi Scheduler -w |
Exclude – Removing Unwanted Results
Exclude function is used to remove some unwanted results.
1 | searchsploit linux kernel 3.2 --exclude="(PoC)|/dos/" |
Copy To Directory
By using “-m” option we can copy the exploit in your current working directory.
1 | searchsploit -m 32112 |
Nmap result – Find Vulnerability
Let’s figure out this feature. Now we will save our nmap results in xml format.
1 | nmap 192.168.0.102 -oX result.xml |
Lets check the results.
It will checks all results in nmap XML output and try to find the related exploit.
1 | searchsploit –x --nmap result.xml |
Similarly ! we can get better results by adding filters to our results.
A keen learner and passionate IT student. He has done Web designing, CCNA, RedHat, Ethical hacking, Network & web penetration testing. Currently, he is completing his graduation and learning about Red teaming, CTF challenges & Blue teaming.