Last active
December 31, 2024 22:31
-
-
Save riswandans/9928bffbd91980f5ace04fc85a0e056c to your computer and use it in GitHub Desktop.
Auto installation RouterSploit on Ubuntu, Debian, Redhat, CentOS, OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/reverse-shell/routersploit | |
if [ -f /etc/lsb-release ]; then | |
os=$(lsb_release -s -d) | |
sudo apt-get install -y python-dev python-pip libncurses5-dev libffi-dev | |
elif [ -f /etc/debian_version ]; then | |
os="Debian $(cat /etc/debian_version)" | |
sudo apt-get install -y python-dev python-pip libncurses5-dev libffi-dev | |
elif [ -f /etc/redhat-release ]; then | |
os="cat /etc/redhat-release" | |
sudo yum install -y python-dev python-pip ncurses-devel | |
elif [ -f /System/Library/CoreServices/SystemVersion.plist ]; then | |
os="sw_vers" | |
sudo easy_install pip | |
else | |
os="$(uname -s) $(uname -r)" | |
fi | |
cd routersploit | |
echo "[*] Installing Package..." | |
sudo pip install -r requirements.txt | |
echo "[*] Updating Package..." | |
sudo pip install -r requirements.txt --upgrade | |
echo "[*] Updating Modules Routersploit..." | |
git pull origin master | |
./rsf.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment