Skip to content

Instantly share code, notes, and snippets.

@jonathanwork
Created July 31, 2017 00:09
Show Gist options
  • Save jonathanwork/74982718b76b7d95290c9c1240a618e9 to your computer and use it in GitHub Desktop.
Save jonathanwork/74982718b76b7d95290c9c1240a618e9 to your computer and use it in GitHub Desktop.
this is creates a bunch of pentools for fedora
#!/bin/bash
#credits to https://github.com/madmantm/fedora-pentest-tools thanks :D
echo "[*]preliminary questions regarding user-rights"
clear
read -p "[*]Please enter your username, this will help me fix permissions:" myname
clear
echo "[*]what would be your prefered directory name for the tools? no slashes pls"
clear
read -p "[*]Please enter the directory name you would like:" mydirectory
clear
echo "[*]system updates"
dnf update -y
dnf upgrade -y
echo "[*]removal of default useless apps."
dnf remove totem rhythmbox evolution -y
echo "[*]kernel headers and dev"
dnf install -y kernel-headers kernel-devel gcc glibc-headers rpm-build
dnf groupinstall -y "C Development Tools and Libraries"
dnf groupinstall -y "Development Tools"
dnf groupinstall -y security-lab
wget -nc https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm
wget -nc https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-25.noarch.rpm
dnf install rpmfusion-free-release-25.noarch.rpm -y
dnf install rpmfusion-nonfree-release-25.noarch.rpm -y
rm rpmfusion-*
echo "[*]installation of normal hacking tools and other tools"
dnf install -y nano scalpel foremost scapy srm yersinia hping3 tcpreplay tcpick socat ophcrack gdb stunnel cmake flex eog openconnect gengetopt steghide whois aircrack-ng gimp iw extundelete rpcbind rdesktop sshfs bzip2 gnome-tweak-tool libtool irssi medusa hydra hydra-frontend terminator curl proxychains perl-Image-ExifTool p7zip p7zip-plugins libpcap htop gnupg subversion git traceroute gparted pidgin pidgin-otr ghex ettercap libnetfilter_queue-devel openvpn dsniff tcpdump john nmap nbtscan wireshark java-1.8.0-openjdk vconfig reaver pyrit thc-ipv6 freerdp qemu-kvm binwalk virt-manager qemu-system-x86 gvfs-fuse autoconf postgresql pgadmin3 chromium
echo "[*]installation of ruby and it's requirements"
dnf install -y ruby ruby-devel rubygem-bundler rubygem-i18n ruby-irb rubygems rubygem-bigdecimal rubygem-rake rubygem-sqlite3
echo "[*]installation of python-requirements"
dnf install -y python python-pip python-setuptools python-libs python-magic python-netaddr python3-netaddr python-inotify python3-configobj python2-configobj python-msgpack python-requests python-pefile pylibpcap python-dns python-cryptography python-devel python-twisted capstone-python python-urllib3 python-pillow python-beautifulsoup python-beautifulsoup4 python2-selenium python3-selenium
echo "[*]installation of python-requirements"
dnf install -y php-cli
echo "[*]installation of dev libs"
dnf install -y readline readline-devel capstone capstone-devel capstone-python3 openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel libyaml libyaml-devel libffi libffi-devel libssh libssh-devel libpqxx libpqxx-devel libsqlite3x libsqlite3x-devel libpcap libpcap-devel pcre libcurl-devel libnfnetlink libnfnetlink-devel libnetfilter_queue-devel zlib-devel zlibrary xz-devel zlibrary-devel postgresql-devel libidn libidn-devel ncurses-libs ncurses ncurses-devel
echo "[*]installation of libs"
dnf install -y libappindicator libindicator m2crypto
echo "[*]installation of googlechrome"
wget -nc https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf install -y google-chrome-stable_current_x86_64.rpm
rm google-chrome-stable_current_x86_64.rpm
echo "[*]installation of gems"
gem install snmp
gem install pcaprub
gem install rake
gem install bettercap
echo "[*]create default core tools directory"
mkdir /home/$myname/$mydirectory
cd /home/$myname/$mydirectory/
mkdir /home/$myname/$mydirectory/cheatsheets
mkdir /home/$myname/$mydirectory/network
mkdir /home/$myname/$mydirectory/webapps
mkdir /home/$myname/$mydirectory/exploits
mkdir /home/$myname/$mydirectory/mobile
mkdir /home/$myname/$mydirectory/wordlists
mkdir /home/$myname/$mydirectory/escalation
mkdir /home/$myname/$mydirectory/pwcracking
mkdir /home/$myname/$mydirectory/reverse
mkdir /home/$myname/$mydirectory/recon
mkdir /home/$myname/$mydirectory/wireless
mkdir /home/$myname/$mydirectory/windows
mkdir /home/$myname/$mydirectory/linux
mkdir /home/$myname/$mydirectory/postexploitation
mkdir /home/$myname/$mydirectory/social_engineering
echo "[*]gather the metasploit repository"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/rapid7/metasploit-framework.git
cd /home/$myname/$mydirectory/exploits/metasploit-framework
bundle install
cd /home/$myname/$mydirectory
echo "[*]other exploit tools"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/longld/peda.git
git clone https://github.com/g0tmi1k/exe2hex.git
git clone https://github.com/huntergregal/mimipenguin
git clone https://github.com/lockfale/meterpreterjank.git
git clone https://github.com/PenturaLabs/Linux_Exploit_Suggester.git
git clone https://github.com/vulnersCom/getsploit
git clone https://github.com/trustedsec/unicorn
cd /home/$myname/$mydirectory
echo "[*]wordlists gathering"
cd /home/$myname/$mydirectory/wordlists
git clone https://github.com/danielmiessler/SecLists.git
wget -nc http://downloads.skullsecurity.org/passwords/rockyou.txt.bz2
wget -nc http://www.tekdefense.com/downloads/wordlists/1aNormusWL.zip
wget -nc http://www.tekdefense.com/downloads/wordlists/KippoWordlist.txt
git clone https://github.com/digininja/CeWL.git
cd /home/$myname/$mydirectory
echo "[*]install burpfree"
cd /home/$myname/$mydirectory/webapps
mkdir /home/$myname/$mydirectory/webapps/burp_proxy
cd /home/$myname/$mydirectory/webapps/burp_proxy
curl https://portswigger.net/DownloadUpdate.ashx?Product=Free -o burpsuite_free.jar
cd /home/$myname/$mydirectory
echo "[*]misc scripts"
cd /home/$myname/$mydirectory
mkdir /home/$myname/$mydirectory/misc
cd /home/$myname/$mydirectory/misc
git clone https://github.com/ChrisTruncer/PenTestScripts.git
cd /home/$myname/$mydirectory
echo "[*]install cookie cadger"
mkdir /home/$myname/$mydirectory/network/sidejacking
cd /home/$myname/$mydirectory/network/sidejacking
wget -nc https://www.cookiecadger.com/files/CookieCadger-1.06.jar
cd /home/$myname/$mydirectory
echo "[*]install enum4linux"
mkdir /home/$myname/$mydirectory/network/enum4linux
cd /home/$myname/$mydirectory/network/enum4linux
wget https://labs.portcullis.co.uk/download/enum4linux-0.8.9.tar.gz --no-check-certificate
tar -xvf enum4linux-0.8.9.tar.gz
rm -rf enum4linux-0.8.9.tar.gz
cd /home/$myname/$mydirectory
echo "[*]install torbrowser"
mkdir /home/$myname/$mydirectory/network/torbrowser
cd /home/$myname/$mydirectory/network/torbrowser
wget -nc https://www.torproject.org/dist/torbrowser/7.0/tor-browser-linux64-7.0_en-US.tar.xz
tar -xvf tor-browser-linux64-7.0_en-US.tar.xz
rm -rf tor-browser-linux64-7.0_en-US.tar.xz
cd /home/$myname/$mydirectory
echo "[*]gathering php reverse shell"
mkdir /home/$myname/$mydirectory/network/reverse_shells
cd /home/$myname/$mydirectory/network/reverse_shells
wget -nc http://pentestmonkey.net/tools/php-reverse-shell/php-reverse-shell-1.0.tar.gz
tar -xvf /home/$myname/$mydirectory/network/reverse_shells/php-reverse-shell-1.0.tar.gz
cd /home/$myname/$mydirectory
echo "[*]install privesc tools"
cd /home/$myname/$mydirectory/escalation
git clone https://github.com/mattifestation/PowerSploit.git
git clone https://github.com/putterpanda/mimikittenz.git
git clone https://github.com/PowerShellEmpire/PowerTools.git
git clone https://github.com/Kevin-Robertson/Inveigh.git
git clone https://github.com/xan7r/kerberoast.git
cd /home/$myname/$mydirectory
echo "[*]install post-exploitation tools"
cd /home/$myname/$mydirectory/postexploitation
git clone https://github.com/dafthack/MailSniper
git clone https://github.com/CoreSecurity/impacket.git
pip install ldap3
git clone https://github.com/EmpireProject/Empire.git
cd /home/$myname/$mydirectory
echo "[*]install volatility framework"
mkdir /home/$myname/$mydirectory/forensics
cd /home/$myname/$mydirectory/forensics
git clone https://github.com/volatilityfoundation/volatility.git
cd /home/$myname/$mydirectory
echo "[*]installing other reconnaissance tools"
cd /home/$myname/$mydirectory/recon
git clone https://github.com/guelfoweb/knock.git
git clone https://github.com/laramies/theHarvester.git
git clone https://github.com/mschwager/gitem
git clone https://github.com/laramies/metagoofil
git clone https://github.com/TheRook/subbrute.git
git clone https://github.com/ejcx/subdomainer.git
git clone https://github.com/aboul3la/Sublist3r.git
git clone https://github.com/ChrisTruncer/EyeWitness.git
git clone https://github.com/hatRiot/clusterd.git
git clone https://github.com/dmuhs/pastebin-scraper
git clone https://github.com/darkoperator/dnsrecon.git
git clone https://github.com/urbanadventurer/WhatWeb.git
git clone https://github.com/leebaird/discover.git
git clone https://github.com/Mr-Un1k0d3r/RedTeamPowershellScripts.git
git clone https://github.com/makefu/dnsmap.git
cd /home/$myname/$mydirectory/recon/dnsmap
make
cd /home/$myname/$mydirectory
echo "[*]install pwcracking tools"
cd /home/$myname/$mydirectory/pwcracking/
git clone https://github.com/lanjelot/patator.git
git clone https://github.com/magnumripper/JohnTheRipper.git
cd /home/$myname/$mydirectory/pwcracking/JohnTheRipper/src
./configure
make
cd /home/$myname/$mydirectory
mkdir /home/$myname/$mydirectory/pwcracking/hashcat
cd /home/$myname/$mydirectory/pwcracking/hashcat
wget https://hashcat.net/files/hashcat-3.10.tar.gz
tar -xvf hashcat-3.10.tar.gz
mkdir /home/$myname/$mydirectory/pwcracking/crunch
cd /home/$myname/$mydirectory/pwcracking/crunch
wget -nc "http://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/crunch-3.6.tgz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcrunch-wordlist%2F&ts=1473785126&use_mirror=pilotfiber" -O crunch-3.6.tgz
cd /home/$myname/$mydirectory
echo "[*]install arachni and other webapp tools"
cd /home/$myname/$mydirectory/webapps
wget http://testssl.sh/testssl.sh
git clone https://github.com/Arachni/arachni.git
cd /home/$myname/$mydirectory/webapps/arachni
cd /home/$myname/$mydirectory/webapps/arachni/bin
bundle install
cd /home/$myname/$mydirectory/webapps
git clone https://github.com/XiphosResearch/exploits.git
git clone https://github.com/wpscanteam/wpscan.git
git clone https://github.com/joaomatosf/jexboss.git
git clone https://github.com/internetwache/GitTools.git
git clone https://github.com/OsandaMalith/LFiFreak
git clone https://github.com/D35m0nd142/LFISuite.git
git clone https://github.com/P0cL4bs/Kadimus
git clone https://github.com/stasinopoulos/commix.git
git clone https://github.com/kost/dvcs-ripper
git clone https://github.com/mandatoryprogrammer/xssless.git
git clone https://github.com/tennc/fuzzdb.git
git clone https://github.com/tennc/webshell
git clone https://github.com/CaledoniaProject/AxisInvoker.git
git clone https://github.com/vs4vijay/heartbleed.git
git clone https://github.com/beefproject/beef
git clone https://github.com/Dionach/CMSmap.git
git clone https://github.com/droope/droopescan.git
git clone https://github.com/gfoss/attacking-drupal.git
git clone https://github.com/sullo/nikto.git
git clone https://github.com/gabtremblay/tachyon.git
git clone https://github.com/sqlmapproject/sqlmap.git
git clone https://github.com/WebBreacher/tilde_enum.git
git clone https://github.com/epinna/weevely3.git
git clone https://github.com/eschultze/URLextractor.git
git clone https://github.com/seifreed/dirb.git
cd dirb
./configure
make
cd /home/$myname/$mydirectory/webapps
wget -nc "http://downloads.sourceforge.net/project/dirbuster/DirBuster%20%28jar%20%2B%20lists%29/1.0-RC1/DirBuster-1.0-RC1.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdirbuster%2Ffiles%2FDirBuster%2520%2528jar%2520%252B%2520lists%2529%2F1.0-RC1%2F&ts=1443459199&use_mirror=iweb" -O DirBuster-1.0-RC1.tar.bz2
bunzip2 DirBuster-1.0-RC1.tar.bz2
tar -xvf DirBuster-1.0-RC1.tar
rm DirBuster-1.0-RC1.tar
cd /home/$myname/$mydirectory/webapps/weevely3
pip install -r requirements.txt
cd /home/$myname/$mydirectory
echo "[*]installing tools for mitm/network/scada"
cd /home/$myname/$mydirectory/network/
git clone https://github.com/scadastrangelove/SCADAPASS.git
git clone https://github.com/DanMcInerney/creds.py.git
git clone https://github.com/inquisb/keimpx
git clone https://github.com/sensepost/DET.git
git clone https://github.com/DanMcInerney/LANs.py.git
git clone https://github.com/lgandx/Responder
git clone https://github.com/arthepsy/ssh-audit.git
git clone https://github.com/DanMcInerney/net-creds.git
git clone https://github.com/covertcodes/multitun.git
git clone https://github.com/byt3bl33d3r/MITMf.git
git clone https://github.com/byt3bl33d3r/CrackMapExec.git
git clone https://github.com/m57/ARDT.git
git clone https://github.com/vanhauser-thc/thc-ipv6.git
git clone https://github.com/nccgroup/vlan-hopping.git
git clone https://github.com/Hood3dRob1n/Reverser.git
git clone https://github.com/SpiderLabs/ikeforce.git
git clone https://github.com/robertdavidgraham/masscan.git
cd /home/$myname/$mydirectory/network/masscan
pip install pyip
cd /home/$myname/$mydirectory/network/masscan/bin
make
cd /home/$myname/$mydirectory/network/MITMf
pip install BeautifulSoup4
pip install --upgrade -r requirements.txt
pip install mysql-python
cd /home/$myname/$mydirectory/network/MITMf/libs/bdfactory/
git clone https://github.com/secretsquirrel/the-backdoor-factory.git .
cd /home/$myname/$mydirectory/network/CrackMapExec
pip install -r requirements.txt
python setup.py install
cd /home/$myname/$mydirectory
echo "[*]installing tools for social engineering"
cd /home/$myname/$mydirectory/social_engineering
git clone https://github.com/trustedsec/social-engineer-toolkit.git
git clone https://github.com/philwantsfish/shard
git clone https://github.com/mwrlabs/XRulez.git
git clone https://github.com/dafthack/MailSniper.git
wget -nc https://github.com/gophish/gophish/releases/download/v0.3.0/gophish-v0.3-linux-64bit.zip
cd /home/$myname/$mydirectory
echo "[*]installing tools for reverse engineering"
cd /home/$myname/$mydirectory/reverse/
git clone https://github.com/Gallopsled/pwntools.git
git clone https://github.com/hasherezade/shellconv.git
git clone https://github.com/botherder/viper.git
git clone https://github.com/mirror/firmware-mod-kit.git
cd /home/$myname/$mydirectory
echo "[*]installing exploit related tools"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/offensive-security/exploit-database
git clone https://github.com/toolswatch/vFeed.git
git clone https://github.com/secretsquirrel/the-backdoor-factory
git clone https://github.com/FuzzySecurity/PowerShell-Suite.git
git clone https://github.com/madmantm/powershell
wget --header="Accept: text/html" --user-agent="MOZILLA" https://www.shellterproject.com/Downloads/Shellter/Latest/shellter.zip
cd /home/$myname/$mydirectory
echo "[*]installing tools for priv escalation"
cd /home/$myname/$mydirectory/escalation
git clone https://github.com/samratashok/nishang.git
git clone https://github.com/rebootuser/LinEnum.git
git clone https://github.com/huntergregal/mimipenguin.git
git clone https://github.com/pentestgeek/smbexec.git
mkdir /home/$myname/$mydirectory/escalation/mimikatz
cd /home/$myname/$mydirectory/escalation/mimikatz
wget -nc http://blog.gentilkiwi.com/downloads/mimikatz_trunk.zip
unzip -o mimikatz_trunk.zip
rm -rf mimikatz_trunk.zip
cd /home/$myname/$mydirectory/escalation/smbexec
bundle install
cd /home/$myname/$mydirectory
echo "[*]installing the veil framework"
cd /home/$myname/$mydirectory/exploits
git clone https://github.com/Veil-Framework/Veil-Evasion.git
git clone https://github.com/Veil-Framework/Veil-PowerView.git
echo "[*]gathering cheatsheets"
cd /home/$myname/$mydirectory/cheatsheets
git clone https://github.com/HarmJ0y/CheatSheets
git clone https://github.com/aramosf/sqlmap-cheatsheet.git
git clone https://github.com/wsargent/docker-cheat-sheet.git
git clone https://github.com/paragonie/awesome-appsec.git
git clone https://github.com/enaqx/awesome-pentest
cd /home/$myname/$mydirectory
echo "[*]installing tools to identify hashes"
mkdir /home/$myname/$mydirectory/crypto
cd /home/$myname/$mydirectory/crypto
git clone https://github.com/SmeegeSec/HashTag.git
git clone https://github.com/psypanda/hashID.git
cd /home/$myname/$mydirectory
echo "[*]installing tools for mitm vlan hopping"
cd /home/$myname/$mydirectory/network
git clone https://github.com/nccgroup/vlan-hopping.git
cd /home/$myname/$mydirectory
echo "[*]installing webapp vuln scanner & XSS utility"
cd /home/$myname/$mydirectory/webapps
git clone https://github.com/spinkham/skipfish.git
cd /home/$myname/$mydirectory/webapps/skipfish
sudo make
cd /home/$myname/$mydirectory
echo "[*]installing wireless et wps tools"
cd /home/$myname/$mydirectory/wireless
git clone https://github.com/DanMcInerney/wifijammer.git
git clone https://github.com/derv82/wifite.git
git clone https://github.com/OpenSecurityResearch/hostapd-wpe.git
git clone https://github.com/sophron/wifiphisher.git
cd /home/$myname/$mydirectory
echo "[*]requirements for wpscan"
cd /home/$myname/$mydirectory/webapps/wpscan
bundle install
cd /home/$myname/$mydirectory
echo "[*]Installing OWASP ZAP proxy"
mkdir /home/$myname/$mydirectory/webapps/zap_proxy
cd /home/$myname/$mydirectory/webapps/zap_proxy
wget -nc "https://github.com/zaproxy/zaproxy/releases/download/2.6.0/ZAP_2.6.0_Linux.tar.gz"
gunzip ZAP_2.6.0_Linux.tar.gz
tar -xvf ZAP_2.6.0_Linux.tar
rm -rf ZAP_2.6.0_Linux.tar
cd /home/$myname/$mydirectory
echo "[*]windows tools just in case no internets"
mkdir /home/$myname/$mydirectory/windows/win_tools
cd /home/$myname/$mydirectory/windows/win_tools
wget -nc "http://www.oxid.it/downloads/ca_setup.exe"
wget -nc "http://downloads.metasploit.com/data/releases/metasploit-latest-windows-installer.exe"
wget -nc "https://www.dbvis.com/product_download/dbvis-9.5.7/media/dbvis_windows-x64_9_5_7_jre.exe"
wget -nc "http://www.ollydbg.de/odbg200.zip"
wget -nc "http://www.ollydbg.de/odbg110.zip"
wget -nc "https://out7.hex-rays.com/files/idafree50.exe"
wget -nc "https://download.sysinternals.com/files/SysinternalsSuite.zip"
echo "[*]linux tools just in case no internets"
mkdir /home/$myname/$mydirectory/linux/lin_tools
cd /home/$myname/$mydirectory/linux/lin_tools
wget -nc "http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run"
wget -nc "https://www.dbvis.com/product_download/dbvis-9.5.7/media/dbvis_linux_9_5_7.rpm"
echo "[*]correcting user-rights"
cd /
chown -R $myname:$myname /home/$myname/$mydirectory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment