Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from tfprelvas/patch-1
Update install.sh to install in other Systems
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 - |