Skip to content

Instantly share code, notes, and snippets.

@n0nuser
Last active September 22, 2023 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n0nuser/d54cd688d24b56c0fbb13ed9ee4bf8bf to your computer and use it in GitHub Desktop.
Save n0nuser/d54cd688d24b56c0fbb13ed9ee4bf8bf to your computer and use it in GitHub Desktop.
Kali Linux Env. Install Script

Kali Linux Environment - Install Script

Look inside the Gist to find the install script!

I made this script 2 years ago, so I guess the version of Kali Linux back then was the 2021.4 version.

Take the package installation with a grain of salt and adapt it to your needs.

Cheers!

#!/bin/bash
# Author: n0nuser ~ https://github.com/n0nuser
# To install if you haven't downloaded the script, run this command:
# wget https://raw.githubusercontent.com/n0nuser/Bash-scripts/master/full-sec-install.sh -O ~/install.sh && bash ~/install.sh
# Bash Prompt - Add to .bashrc
# PS1="\[\033[0;31m\]┌──[\[\033[0m\]\t\[\033[0;31m\]]-[\[\033[0m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h\[\033[0;31m\]]-[\[\033[0;32m\]\w\[\033[0;31m\]]\n\[\033[0;31m\]└──╼ \[\033[01;33m\]\$ \[\033[0m\]"
location="/opt" # Location where all the tools are going to be downloaded
downloads="~/Downloads" # Put here your downloads folder from ~
sudo chmod +rwx $location
## APT-Manager
rm -rf ~/.bash_aliases
wget https://gist.github.com/n0nuser/34fc14a084436ae89c2b3405ad453f0a/raw/e3f4d4be8bc13bd532b2d396846bf4cdd9885fee/.bash_aliases -O ~/.bash_aliases
source ~/.bash_aliases
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y
### General
sudo apt-get install -y git wget python python3 pip pip3
### For rsa-tool
sudo apt-get install -y libgmp3-dev libmpc-dev
### For Krackattacks
sudo apt-get install -y libnl-3-dev libnl-genl-3-dev pkg-config libssl-dev net-tools git sysfsutils python-scapy python-pycryptodome virtualenv
## Download VSCode
cd $downloads && wget https://go.microsoft.com/fwlink/?LinkID=760868 -O vscode.deb && sudo apt-get install ./vscode.deb -y
## Backdoors
cd $location && mkdir Backdoor && cd Backdoor
git clone https://github.com/epinna/weevely3.git
git clone https://github.com/TheBinitGhimire/Web-Shells.git
## Buffer Overflow
cd $location && mkdir BOF && cd BOF
wget https://github.com/Svenito/exploit-pattern/raw/master/pattern.py
## Criptography
cd $location && mkdir Crypto && cd Crypto
git clone https://github.com/nccgroup/featherduster.git && cd featherduster && python setup.py install && cd ..
git clonehttps://github.com/ius/rsatool.git && cd rsatool && python setup.py install && cd ..
git clone https://github.com/Ganapati/rsaCtfTool.git && cd rsaCtfTool && pip3 install -r "requirements.txt" && cd ..
## Hashes
cd $location && mkdir Hashes && cd Hashes
git clone https://github.com/csababarta/ntdsxtract.git
## Privilege Escalation
cd $location && mkdir Privilege && cd Privilege
git clone https://github.com/rebootuser/LinEnum/raw/master/LinEnum.sh
wget https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/raw/master/winPEAS/winPEASexe/winPEAS/bin/x86/Release/winPEAS.exe
wget https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/raw/master/linPEAS/linpeas.sh
wget https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/raw/master/winPEAS/winPEASbat/winPEAS.bat
wget https://github.com/int0x33/nc.exe/raw/master/nc.exe
wget https://github.com/pentestmonkey/php-reverse-shell/raw/master/php-reverse-shell.php
wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy32
wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64
wget https://the.earth.li/~sgtatham/putty/latest/w32/pscp.exe
wget https://the.earth.li/~sgtatham/putty/latest/w32/pscp.exe
wget https://github.com/n0nuser/Reversegen/raw/master/reversegen.py
## RFID
cd $location && mkdir RFID && cd RFID
wget https://github.com/n0nuser/Reversegen/raw/master/reversegen.py
## Steganography
cd $location && mkdir Stego && cd Stego
git clone https://github.com/b3dk7/StegExpose.git
git clone https://github.com/evyatarmeged/stegextract.git
## WiFi
cd $location && mkdir WiFi && cd WiFi
git clone https://github.com/FluxionNetwork/fluxion.git
git clone https://github.com/vanhoefm/krackattacks-scripts.git
## General
cd $location
git clone https://github.com/swisskyrepo/PayloadsAllTheThings.git
git clone https://github.com/SecureAuthCorp/impacket.git
wget https://github.com/slimm609/checksec.sh/raw/master/checksec -O checksec.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment