How to Install RouterSploit on Kali Linux (Complete Guide)

Install RouterSploit on Kali Linux to start testing routers and other embedded network devices for known vulnerabilities. RouterSploit is a penetration-testing tool that many security researchers use when working with routers, IP cameras, and similar hardware.
The framework includes modules for scanning devices, testing weak credentials, and running different exploits that target router vulnerabilities. Because of that, it’s often compared to tools like Metasploit, although RouterSploit is more focused on network devices.
In the following sections, we’ll briefly introduce RouterSploit and then go through the steps needed to install it on Kali Linux.
RouterSploit Modules
RouterSploit comes with various modules for penetration testing in Kali linux:
1- Exploits
Exploits are used to take advantage of vulnerabilities in routers. They take advantage of identified vulnerabilities.
2- Payloads
Payloads are the code that runs after a vulnerability has been exploited. In RouterSploit, they are used to execute actions on the target device and can be generated for different architectures depending on the system being tested.
3- Scanners
This module scans a network or device to see if it might be vulnerable to known exploits. They also check if the target is vulnerable to any exploit.
4- Creds
The “Creds” or “credentials” module is used to test credentials on the different devices. These are designed to test credentials against network services. With the creds module, you can perform a dictionary attack on various network protocols such as FTP, SSH, Telnet, HTTP Basic, and HTTP Form.
Install RouterSploit On Kali Linux
The following modules should be present in the system as a requirement to install RouterSploit. The modules are future, requests, Paramiko, Pysnmp, and Pycrypto. Also, Bluepy – Bluetooth low energy is an optional requirement.
When you have prepared them, you can use the following command to install Routersploit on Kali Linux:
apt-get install python3-pip
git clone https://github.com/threat9/routersploit
cd routersploit
python3 -m pip install -r requirements.txt
python3 rsf.py
Note: You can also run the command below to install RouterSploit and any other packages on which it depends:
sudo apt-get install routersploit
[inline_post]
How to Uninstall Routersploit on Kali Linux
If you wish to uninstall RouterSploit, use the following command to remove just the Routersploit package itself:
sudo apt-get remove routersploit
Also, you will be able to remove the Routersploit package and any other dependant packages which are no longer needed. So, type:
sudo apt-get remove --auto-remove routersploit
But if you also want to delete your local/config files for Routersploit then this will work due to any reason, you can simply run:
sudo apt-get purge routersploit
Or similarly, like this Routersploit:
sudo apt-get purge --auto-remove routersploit
Important Point: Purged config/data can not restore by reinstalling the package.
Conclusion
At this point RouterSploit should already be running on your Kali system. If you haven’t worked with it before, the easiest way to understand it is simply to open it and start going through the modules. Running a few scans in a small lab setup usually gives you a better idea of what the framework can actually do.
RouterSploit is mostly used when checking routers or other embedded devices for known vulnerabilities, so it can be handy when you’re auditing network equipment or testing older hardware.
Keeping the framework updated from time to time is also a good idea, since new modules and fixes appear regularly.


