Skip to content

Instantly share code, notes, and snippets.

@riswandans
Last active April 3, 2021 23:30
Show Gist options
  • Save riswandans/9928bffbd91980f5ace04fc85a0e056c to your computer and use it in GitHub Desktop.
Save riswandans/9928bffbd91980f5ace04fc85a0e056c to your computer and use it in GitHub Desktop.
Auto installation RouterSploit on Ubuntu, Debian, Redhat, CentOS, OSX
#!/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