Skip to content

Instantly share code, notes, and snippets.

@X-Cotang
Created April 12, 2024 08:50
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 X-Cotang/8d56e40ee640a0080ecc8c86a921bf09 to your computer and use it in GitHub Desktop.
Save X-Cotang/8d56e40ee640a0080ecc8c86a921bf09 to your computer and use it in GitHub Desktop.
OSCP - Kali Linux - Machine setup
sudo apt-get update -y
sudo apt install -y docker.io docker-compose sshfs chisel dirsearch sqlmap nmap bloodhound
sudo usermod -aG docker $USER
sudo apt install golang-go
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# Download some tool
mkdir ~/Desktop/tool/
cd ~/Desktop/tool
# install dirsearch
# git clone https://github.com/maurosoria/dirsearch.git --depth 1
# python3 -m pip install -r dirsearch/requirements.txt
echo Install Neo-reGeorg
git clone https://github.com/L-codes/Neo-reGeorg.git
# install bloodhound https://www.kali.org/tools/bloodhound/
# sudo apt install -y bloodhound
# install burp suite pro
# install antsword
# install impacket
sudo apt install python3-impacket
# install ffuf
go install github.com/ffuf/ffuf/v2@latest
# install naabu
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
# install httpx
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
# install httprobe
go install github.com/tomnomnom/httprobe@latest
# WWW folder
mkdir ~/Desktop/www
cd ~/Desktop/www
echo Download chisel (change): https://github.com/jpillora/chisel/releases/download/v1.9.1/chisel_1.9.1_windows_amd64.gz
wget https://github.com/jpillora/chisel/releases/download/v1.9.1/chisel_1.9.1_windows_amd64.gz
gzip -d chisel_1.9.1_windows_amd64.gz
echo Download naabu (change): https://github.com/projectdiscovery/naabu/releases/download/v2.3.0/naabu_2.3.0_windows_amd64.zip
wget https://github.com/projectdiscovery/naabu/releases/download/v2.3.0/naabu_2.3.0_windows_amd64.zip
unzip naabu_2.3.0_windows_amd64.zip
rm naabu_2.3.0_windows_amd64.zip
echo Download ConPtyShell: https://raw.githubusercontent.com/antonioCoco/ConPtyShell/master/Invoke-ConPtyShell.ps1
wget https://raw.githubusercontent.com/antonioCoco/ConPtyShell/master/Invoke-ConPtyShell.ps1
echo Download winPEASany_ofs.exe: https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASany_ofs.exe
wget https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASany_ofs.exe
echo Download linPEAS: https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh
wget https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh
echo Download JuicyPotato: https://github.com/ohpe/juicy-potato/releases/download/v0.1/JuicyPotato.exe
wget https://github.com/ohpe/juicy-potato/releases/download/v0.1/JuicyPotato.exe
echo Download mimikatz: https://github.com/ParrotSec/mimikatz/raw/master/x64/mimikatz.exe
wget https://github.com/ParrotSec/mimikatz/raw/master/x64/mimikatz.exe
echo Download SpoolFool: https://github.com/ly4k/SpoolFool/
wget https://github.com/ly4k/SpoolFool/raw/main/SpoolFool.exe
wget https://raw.githubusercontent.com/ly4k/SpoolFool/main/SpoolFool.ps1
wget https://github.com/ly4k/SpoolFool/raw/main/AddUser.dll
echo Download PrintSpoofer: https://github.com/itm4n/PrintSpoofer/releases/download/v1.0/PrintSpoofer64.exe
# https://github.com/itm4n/PrintSpoofer
wget https://github.com/itm4n/PrintSpoofer/releases/download/v1.0/PrintSpoofer64.exe
echo Download PrintNightmare: https://raw.githubusercontent.com/calebstewart/CVE-2021-1675/main/CVE-2021-1675.ps1
wget https://raw.githubusercontent.com/calebstewart/CVE-2021-1675/main/CVE-2021-1675.ps1
echo Download GodPotato: https://github.com/BeichenDream/GodPotato
wget https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET2.exe
wget https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET4.exe
wget https://github.com/BeichenDream/GodPotato/releases/download/V1.20/GodPotato-NET35.exe
########################
# Download some exploit
mkdir ~/Desktop/exploit
cd ~/Desktop/exploit
echo Download
git clone https://github.com/cube0x0/CVE-2021-1675.git
git clone https://github.com/AntSwordProject/AwesomeScript
# Manual Download
echo Manual install
echo tool: https://github.com/AntSwordProject/AntSword-Loader
echo tool: echo burp suite pro
echo exploit: https://github.com/Dec0ne/KrbRelayUp
echo exploit (option): https://github.com/PowerShellMafia/PowerSploit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment