-
Notifications
You must be signed in to change notification settings - Fork 265
/
install.sh
119 lines (109 loc) · 7.61 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
#
# Author: lefayjey
#
RED='\033[1;31m'
GREEN='\033[1;32m'
BLUE='\033[1;34m'
NC='\033[0m'
scripts_dir="/opt/lwp-scripts"
install_tools() {
echo -e "${BLUE}Installing tools using apt...${NC}"
sudo apt-get update && \
sudo apt-get install -y python3 python3-dev python3-pip python3-venv nmap smbmap john libsasl2-dev libldap2-dev libkrb5-dev ntpdate wget zip unzip systemd-timesyncd pipx swig curl jq openssl
echo -e ""
echo -e "${BLUE}Installing Rust...${NC}"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source ~/.cargo/env
echo -e ""
echo -e "${BLUE}Installing python tools using pip and pipx...${NC}"
pipx ensurepath
pipx install git+https://github.com/dirkjanm/ldapdomaindump.git --force
pipx install git+https://github.com/Pennyw0rth/NetExec.git --force
pipx install git+https://github.com/fortra/impacket.git --force
pipx install git+https://github.com/dirkjanm/adidnsdump.git --force
pipx install git+https://github.com/zer1t0/certi.git --force
pipx install git+https://github.com/ly4k/Certipy.git --force
pipx install git+https://github.com/dirkjanm/bloodhound.py --force
pipx install "git+https://github.com/dirkjanm/BloodHound.py@bloodhound-ce" --force --suffix '_ce'
pipx install git+https://github.com/franc-pentest/ldeep.git --force
pipx install git+https://github.com/garrettfoster13/pre2k.git --force
pipx install git+https://github.com/zblurx/certsync.git --force
pipx install hekatomb --force
pipx install git+https://github.com/blacklanternsecurity/MANSPIDER --force
pipx install git+https://github.com/p0dalirius/Coercer --force
pipx install git+https://github.com/CravateRouge/bloodyAD --force
pipx install git+https://github.com/login-securite/DonPAPI --force
pipx install git+https://github.com/p0dalirius/RDWAtool --force
pipx install git+https://github.com/almandin/krbjack --force
pipx install git+https://github.com/CompassSecurity/mssqlrelay.git --force
pipx install git+https://github.com/ajm4n/adPEAS --force
pipx install git+https://github.com/oppsec/breads.git --force
pipx install git+https://github.com/p0dalirius/smbclient-ng --force
echo -e ""
echo -e "${BLUE}Downloading tools and scripts using wget and unzipping...${NC}"
sudo mkdir -p ${scripts_dir}
sudo mkdir -p ${scripts_dir}/ldapper
sudo mkdir -p ${scripts_dir}/Responder
sudo chown -R "$(whoami)":"$(whoami)" ${scripts_dir}
python3 -m venv "${scripts_dir}/.venv"
source "${scripts_dir}/.venv/bin/activate"
pip3 install PyYAML alive-progress xlsxwriter sectools typer colorama impacket tabulate arc4 msldap pandas requests requests_ntlm requests_toolbelt cmd2 pycryptodome --upgrade
deactivate
wget -q "https://github.com/ropnop/go-windapsearch/releases/latest/download/windapsearch-linux-amd64" -O "$scripts_dir/windapsearch"
wget -q "https://github.com/ropnop/kerbrute/releases/latest/download/kerbrute_linux_amd64" -O "$scripts_dir/kerbrute"
wget -q "https://raw.githubusercontent.com/cddmp/enum4linux-ng/master/enum4linux-ng.py" -O "$scripts_dir/enum4linux-ng.py"
wget -q "https://raw.githubusercontent.com/Bdenneu/CVE-2022-33679/main/CVE-2022-33679.py" -O "$scripts_dir/CVE-2022-33679.py"
wget -q "https://raw.githubusercontent.com/layer8secure/SilentHound/main/silenthound.py" -O "$scripts_dir/silenthound.py"
wget -q "https://raw.githubusercontent.com/ShutdownRepo/targetedKerberoast/main/targetedKerberoast.py" -O "$scripts_dir/targetedKerberoast.py"
wget -q "https://raw.githubusercontent.com/p0dalirius/FindUncommonShares/main/FindUncommonShares.py" -O "$scripts_dir/FindUncommonShares.py"
wget -q "https://raw.githubusercontent.com/p0dalirius/ExtractBitlockerKeys/refs/heads/main/python/ExtractBitlockerKeys.py" -O "$scripts_dir/ExtractBitlockerKeys.py"
wget -q "https://raw.githubusercontent.com/p0dalirius/ldapconsole/master/ldapconsole.py" -O "$scripts_dir/ldapconsole.py"
wget -q "https://raw.githubusercontent.com/p0dalirius/LDAPmonitor/master/python/pyLDAPmonitor.py" -O "$scripts_dir/pyLDAPmonitor.py"
wget -q "https://raw.githubusercontent.com/p0dalirius/LDAPWordlistHarvester/main/LDAPWordlistHarvester.py" -O "$scripts_dir/LDAPWordlistHarvester.py"
wget -q "https://github.com/garrettfoster13/aced/archive/refs/heads/main.zip" -O "$scripts_dir/aced.zip"
wget -q "https://github.com/garrettfoster13/sccmhunter/archive/refs/heads/main.zip" -O "$scripts_dir/sccmhunter.zip"
wget -q "https://raw.githubusercontent.com/shellster/LDAPPER/master/ldapper.py" -O "$scripts_dir/ldapper/ldapper.py"
wget -q "https://raw.githubusercontent.com/shellster/LDAPPER/master/utilities.py" -O "$scripts_dir/ldapper/utilities.py"
wget -q "https://raw.githubusercontent.com/shellster/LDAPPER/master/queries.py" -O "$scripts_dir/ldapper/queries.py"
wget -q "https://raw.githubusercontent.com/shellster/LDAPPER/master/ldap_connector.py" -O "$scripts_dir/ldapper/ldap_connector.py"
wget -q "https://github.com/trustedsec/orpheus/archive/refs/heads/main.zip" -O "$scripts_dir/orpheus.zip"
wget -q "https://github.com/lkarlslund/Adalanche/releases/latest/download/adalanche-linux-x64-v2024.1.11" -O "$scripts_dir/adalanche"
wget -q "https://github.com/Hackndo/pyGPOAbuse/archive/refs/heads/master.zip" -O "$scripts_dir/pyGPOAbuse.zip"
wget -q "https://raw.githubusercontent.com/X-C3LL/GPOwned/main/GPOwned.py" -O "$scripts_dir/GPOwned.py"
wget -q "https://raw.githubusercontent.com/dirkjanm/PrivExchange/master/privexchange.py" -O "$scripts_dir/privexchange.py"
wget -q "https://raw.githubusercontent.com/lgandx/Responder/master/tools/RunFinger.py" -O "$scripts_dir/Responder/RunFinger.py"
wget -q "https://raw.githubusercontent.com/lgandx/Responder/master/tools/odict.py" -O "$scripts_dir/Responder/odict.py"
wget -q "https://raw.githubusercontent.com/lgandx/Responder/master/tools/RunFingerPackets.py" -O "$scripts_dir/Responder/RunFingerPackets.py"
wget -q "https://github.com/lkarlslund/ldapnomnom/releases/latest/download/ldapnomnom-linux-x64" -O "$scripts_dir/ldapnomnom"
unzip -o "$scripts_dir/aced.zip" -d "$scripts_dir"
unzip -o "$scripts_dir/sccmhunter.zip" -d "$scripts_dir"
unzip -o "$scripts_dir/orpheus.zip" -d "$scripts_dir"
unzip -o "$scripts_dir/pyGPOAbuse.zip" -d "$scripts_dir"
chmod +x "$scripts_dir/aced-main/aced.py"
chmod +x "$scripts_dir/sccmhunter-main/sccmhunter.py"
chmod +x "$scripts_dir/windapsearch"
chmod +x "$scripts_dir/kerbrute"
chmod +x "$scripts_dir/enum4linux-ng.py"
chmod +x "$scripts_dir/CVE-2022-33679.py"
chmod +x "$scripts_dir/silenthound.py"
chmod +x "$scripts_dir/targetedKerberoast.py"
chmod +x "$scripts_dir/FindUncommonShares.py"
chmod +x "$scripts_dir/ExtractBitlockerKeys.py"
chmod +x "$scripts_dir/ldapconsole.py"
chmod +x "$scripts_dir/pyLDAPmonitor.py"
chmod +x "$scripts_dir/LDAPWordlistHarvester.py"
chmod +x "$scripts_dir/ldapper/ldapper.py"
chmod +x "$scripts_dir/orpheus-main/orpheus.py"
chmod +x "$scripts_dir/orpheus-main/GetUserSPNs.py"
chmod +x "$scripts_dir/adalanche"
chmod +x "$scripts_dir/pyGPOAbuse-master/pygpoabuse.py"
chmod +x "$scripts_dir/GPOwned.py"
chmod +x "$scripts_dir/privexchange.py"
chmod +x "$scripts_dir/Responder/RunFinger.py"
chmod +x "$scripts_dir/Responder/odict.py"
chmod +x "$scripts_dir/Responder/RunFingerPackets.py"
chmod +x "$scripts_dir/ldapnomnom"
}
install_tools || { echo -e "\n${RED}[Failure]${NC} Installing tools failed.. exiting script!\n"; exit 1; }
echo -e "\n${GREEN}[Success]${NC} Setup completed successfully! Open a new terminal to load the shell's configuration ... \n"