-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathinstall.bat
51 lines (38 loc) · 1.12 KB
/
install.bat
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
@echo off
if [%1] == [] (
echo Error: Missing arguments
goto usage
)
REM Install StormSpotter
mkdir %1\tools
cd %1\tools
git clone https://github.com/Azure/Stormspotter.git
cd %1\tools\Stormspotter\backend
REM Edit files
copy %1\resources\app\index.html %1\resources\app\index.html.bak
powershell %~dp0/editFiles.ps1 %1
pipenv install -r requirements.txt
copy /y %~dp0\helpers\Stormspotter\import_storm.py %1\tools\Stormspotter\backend
REM Move helpers to BloodHound folder and install neccessary files
cd %~dp0
mkdir %1\helpers
xcopy /y /s helpers %1\helpers
REM Install requirements for helpers
cd %1\helpers\AWS
pipenv install -r requirements.txt
cd %1\helpers\AWS\attacks
pipenv install -r requirements.txt
REM Add plugin files to BloodHound
cd %~dp0
mkdir %1\resources\app\plugin
xcopy /y /s plugin %1\resources\app\plugin
REM Edit BloodHound custom queries
cd %~dp0
move %APPDATA%\BloodHound\customqueries.json %APPDATA%\BloodHound\customqueries.json.bkp
copy /y plugin\customqueries.json %APPDATA%\BloodHound\
cd %~dp0
echo "Installation complete, happy graphing :)"
goto end
:usage
echo "install <BloodHound path>""
:end