-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkali_setup.sh
76 lines (61 loc) · 1.67 KB
/
kali_setup.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
#!/bin/bash
say_stuff () {
echo "======================="
echo $1
echo "======================="
}
# 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"
git clone https://github.com/c3c/ADExplorerSnapshot.py.git /opt/tools/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"
git clone https://github.com/topotam/PetitPotam /opt/tools/PetitPotam/
# Pywerview
say_stuff "Installing Pywerview"
pipx install pywerview
# CredNinja
say_stuff "Installing CredNinja"
git clone https://github.com/raikia/CredNinja.git /opt/tools/CredNinja/