ArchTitus/4-pen-tools.sh

74 lines
3.0 KiB
Bash

#!/usr/bin/env bash
#------------------------------------------------------------------------------------
# ▄▄
#▀███▀▀▀██▄ ██ ██ ██ ███
# ██ ██ ██ ██ ▄██▄ ██
# ██ ██ ▄▄█▀██████████████ ▄▄█▀██▀███▄███ ▄█▀██▄ ▀███▄███ ▄██▀██ ███████▄
# ██▀▀▀█▄▄▄█▀ ██ ██ ██ ▄█▀ ██ ██▀ ▀▀ ▄█ ▀██ ██▀ ▀▀██▀ ██ ██ ██
# ██ ▀███▀▀▀▀▀▀ ██ ██ ██▀▀▀▀▀▀ ██ ████████ ██ ██ ██ ██
# ██ ▄███▄ ▄ ██ ██ ██▄ ▄ ██ █▀ ██ ██ ██▄ ▄██ ██
#▄████████ ▀█████▀ ▀████ ▀████ ▀█████▀████▄ ▄███▄ ▄████▄████▄ █████▀████ ████▄
#
#------------------------------------------------------------------------------------
echo -e "\nFINAL SETUP AND CONFIGURATION"
echo -e "\nInstalling penetration testing tools"
PKGS=(
'airgeddon-git' # Audit wireless networks
'ba-pentest-commons-meta'
'bettercap' # Networking swiss army knife
'metasploit' # Exploit
'nmap' # Network scanning
'sherlock-git'
)
for PKG in "${PKGS[@]}"; do
echo "INSTALLING: ${PKG}"
sudo pacman -S "$PKG" --noconfirm --needed
done
echo -e "\nInstalling git repositories\n"
mkdir $HOME/git
cd $HOME/git
git clone https://github.com/six2dez/reconftw.git
cd reconftw/
./install.sh
cd $HOME/git
git clone https://github.com/codingo/Reconnoitre.git
python3 setup.py install
cd $HOME/git
git clone https://github.com/AlisamTechnology/ATSCAN
chmod +x ./install.sh
./install.sh
cd $HOME/git
git clone https://github.com/evyatarmeged/Raccoon.git
cd Raccoon
python setup.py install # Subsequent changes to the source code will not be reflected in calls to raccoon when this is used
echo "
###############################################################################
# Cleaning
###############################################################################
"
# Remove no password sudo rights
sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
# Add sudo rights
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
# Replace in the same state
cd $pwd
top -b -n 1 | head | grep -A 1 PID | grep "^[0-9]" | cut -f1 -d" " | xargs kill
echo "
###############################################################################
# Done - Please Eject Install Media and Reboot
###############################################################################
"