Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install.sh to install in other Systems #7

Merged
merged 1 commit into from Jan 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 -