-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkali_setup.sh
More file actions
126 lines (100 loc) · 2.67 KB
/
kali_setup.sh
File metadata and controls
126 lines (100 loc) · 2.67 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
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
120
121
122
123
124
125
126
#!/bin/bash
say_stuff () {
echo "======================="
echo $1
echo "======================="
}
get_git () {
toolname=`echo $1 | cut -d '/' -f 5`
echo "Cloning ${toolname}"
if [ ! -d "/opt/tools/${toolname}" ]; then
git clone $1 "/opt/tools/${toolname}"
fi
}
# Make sure we have apt up to date
say_stuff "Apt updating"
export DEBIAN_FRONTEND=noninteractive
export NEEDRESTART_MODE=a
sudo apt update
# Set up /opt/tools/
say_stuff "Creating /opt/tools/"
if [ ! -d /opt/tools/ ]; then
sudo mkdir /opt/tools/
sudo chown kali:kali /opt/tools/
fi
# Pipx setup
say_stuff "Installing Pipx"
sudo apt install -y pipx git
pipx ensurepath
# Set up Docker
say_stuff "Installing Docker"
sudo apt install -y docker.io
sudo systemctl enable docker --now
sudo usermod -aG docker kali
# NetExec
say_stuff "Installing NetExec"
pipx install git+https://github.com/Pennyw0rth/NetExec
# BloodHound
say_stuff "Installing BloodHound"
sudo apt install -y bloodhound
echo "Run 'sudo neo4j console', and change default credentials of neo4j:neo4j"
echo "Then run 'bloodhound' to open GUI"
# bbot
say_stuff "Installing bbot"
pipx install bbot
# Certipy
say_stuff "Installing Certipy"
pipx install certipy-ad
# Coercer
say_stuff "Installing Coercer"
pipx install coercer
# ADExplorerSnapshot.py
say_stuff "Installing ADExplorerSnapshot.py"
get_git https://github.com/c3c/ADExplorerSnapshot.py
cd /opt/tools/ADExplorerSnapshot.py/
pipx install .
cd -
# BloodHound.py
say_stuff "Installing BloodHound.py"
pipx install bloodhound
# PetitPotam
say_stuff "Installing PetitPotam"
get_git https://github.com/topotam/PetitPotam
# Pywerview
say_stuff "Installing Pywerview"
pipx install pywerview
# CredNinja
say_stuff "Installing CredNinja"
get_git https://github.com/raikia/CredNinja.git
# PyMeta
say_stuff "Installing PyMeta"
sudo apt install exiftool -y
pipx install pymetasec
# Metagoofil
say_stuff "Installing MetaGooFil"
sudo apt install metagoofil -y
# SMBCrunch
say_stuff "Installing SMBCrunch"
get_git https://github.com/Raikia/SMBCrunch
# PXEThief
say_stuff "Installing PXEThief"
get_git https://github.com/MWR-CyberSec/PXEThief
# SCCMHunter
say_stuff "Installing SCCMHunter"
pipx install git+https://github.com/garrettfoster13/sccmhunter/
# ldeep
say_stuff "Installing ldeep"
python -m pip install git+https://github.com/franc-pentest/ldeep
# pyldapsearch
say_stuff "Installing pyldapsearch"
pipx install git+https://github.com/Tw1sm/pyldapsearch
# BOFHound
say_stuff "Installing BOFHound"
pipx install git+https://github.com/coffeegist/bofhound
# DonPAPI
say_stuff "Installing DonPAPI"
sudo apt install libxslt1-dev libxml2-dev -y
pipx install donpapi
# lsassy
say_stuff "Installing lsassy"
pipx install lsassy