-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathinstall.sh
More file actions
93 lines (78 loc) · 2.37 KB
/
Copy pathinstall.sh
File metadata and controls
93 lines (78 loc) · 2.37 KB
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
#!/bin/bash
apt update
if ! which ipcalc >/dev/null 2>&1; then
apt install ipcalc -y
fi
if ! which netexec >/dev/null 2>&1; then
apt install pipx git
pipx ensurepath
pipx install git+https://github.com/Pennyw0rth/NetExec
fi
if ! which xfreerdp3 >/dev/null 2>&1; then
apt install freerdp3 -y
fi
if ! which bloodhound-ce-python >/dev/null 2>&1; then
apt install bloodhound-ce-python -y
fi
if ! which pret >/dev/null 2>&1; then
git clone https://github.com/RUB-NDS/PRET.git
sed -i '1s|^#!/usr/bin/env python$|#!/usr/bin/env python2|' PRET/pret.py
mv /usr/bin/PRET /opt/pret
ln -s /opt/pret/pret.py /usr/local/bin/pret
chmod +x /usr/local/bin/pret
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python2 get-pip.py
rm get-pip.py
python2 -m pip install pysnmp
fi
if ! which manspider >/dev/null 2>&1; then
apt install python3-venv -y
pip install pipx
pipx install git+https://github.com/blacklanternsecurity/MANSPIDER --force
pipx ensurepath
# for images (png, jpeg)
apt install tesseract-ocr -y
# for legacy document support (.doc)
apt install antiword -y
cp ~/.local/share/pipx/venvs/man-spider/bin/manspider /usr/bin/
fi
if ! which xsltproc >/dev/null 2>&1; then
apt install xsltproc -y
fi
if ! which kerbrute >/dev/null 2>&1; then
if ! dpkg -l | grep -q "^ii golang-go "; then
apt install golang-go -y
fi
git clone https://github.com/ropnop/kerbrute
cd kerbrute
make linux
cd dist
cp kerbrute_linux_amd64 /usr/sbin/kerbrute
cd ../..
rm -rf kerbrute
fi
if [ ! -f "/usr/share/nmap/nmap-services.bkp" ]; then
cp /usr/share/nmap/nmap-services /usr/share/nmap/nmap-services.bkp
fi
# Make update top-ports 1000 to include winrm service
curl https://raw.githubusercontent.com/nmap/nmap/refs/heads/master/nmap-services -o /usr/share/nmap/nmap-services
if ! which proxychains >/dev/null 2>&1; then
apt install proxychains4 -y
fi
if ! which ldapsearch >/dev/null 2>&1; then
apt install ldap-utils -y
fi
if ! which snmpwalk >/dev/null 2>&1; then
apt install snmp-mibs-downloader -y
fi
#Installation MIB SNMP :
if ! which snmpwalk >/dev/null 2>&1; then
apt install download-mibs -y
sed -i '/^mibs :/ s/^/# /' /etc/snmp/snmp.conf
fi
if ! which onesixtyone >/dev/null 2>&1; then
apt install onesixtyone -y
fi
if ! which seclists >/dev/null 2>&1; then
apt install seclists -y
fi