forked from noahpowers/ServerSetup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInstall-Run-BloodHound.sh
executable file
·37 lines (32 loc) · 1.27 KB
/
Install-Run-BloodHound.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
#!/bin/bash
### Remove old neo4j
sudo apt autoremove neo4j -y
### Install new neo4j
### http://debian.neo4j.org/?_ga=2.109747205.1011525260.1534257869-109789600.1534257869
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
sudo apt-get install neo4j -y
### Download new Bloodhound
### https://github.com/BloodHoundAD/BloodHound/releases
sudo wget -O BloodHound-linux-x64.zip https://github.com/BloodHoundAD/BloodHound/releases/download/4.1.1/BloodHound-linux-x64.zip
unzip BloodHound-linux-x64.zip
sudo cp -a BloodHound-linux-x64/ /opt/
### Removing old auth files
# rm -rf /root/tools/Bloodhound/BloodHoundExampleDB.graphdb/data/dbms/auth
# rm -rf /var/lib/neo4j/data/dbms/auth
# rm -rf /var/lib/neo4j/data/databases/BloodHoundExampleDB.graphdb/data/dbms/auth
sudo cd /usr/bin
read -p "Password you want: " -r pass
sudo neo4j-admin set-initial-password $pass
ulimit -n 40000
screen -S neo4j -d -m neo4j console
sleep 5
### Launch new Bloodhound
sudo apt-get install libgconf-2-4
echo ""
echo "When BLANK WHITE SCREEN for BloodHound displays..."
echo "...just click CONTROL+R"
echo ""
sleep 7
sudo /opt/BloodHound-linux-x64/BloodHound --no-sandbox