Skip to content

Commit

Permalink
Merge pull request #7 from tfprelvas/patch-1
Browse files Browse the repository at this point in the history
Update install.sh to install in other Systems
  • Loading branch information
Anteste committed Jan 11, 2021
2 parents 8e12469 + f06367d commit a14b59a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions install.sh
@@ -1,9 +1,22 @@
#!/usr/bin/bash

sudo apt-get install gnome-terminal -y
sudo apt-get install nmap -y
sudo apt-get install nikto -y
# Verify the OS witch is using and install on the right one
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then ##If need more distributions just add more
sudo apt-get install nmap nikto git -y
elif [ "$(grep -Ei 'redhat|centos' /etc/*release)" ]; then ##To install on RPM CentOS/RedHat
os_version=`cat /etc/system-release-cpe | cut -d ':' -f5`
if [ $os_version == 8 ]; then
sudo dnf install https://extras.getpagespeed.com/release-el8-latest.rpm -y
sudo dnf install nikto nmap -y
elif [ $os_version == 7 ]; then
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-20.el7.art.noarch.rpm
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-21.art.noarch.rpm
sudo rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-release-1.0-21.art.noarch.rpm
sudo yum install nikto nmap git -y
fi
fi

sudo chmod +x webmap.py
sudo cp webmap.py /bin/webmap
cd /opt && sudo git clone https://github.com/maurosoria/dirsearch.git
cd -
cd -

0 comments on commit a14b59a

Please sign in to comment.