-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1671145
commit 1f9afb1
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
git clone https://github.com/1mm0rt41PC/BloodHound --depth 1 | ||
cd BloodHound | ||
|
||
:: Adjust Collectors | ||
rmdir /q /s Collectors\DebugBuilds | ||
mv Collectors ..\ | ||
:: Copy Collectors | ||
xcopy %scriptpath%\bin\certipy_x64.exe ..\Collectors\ | ||
xcopy %scriptpath%\bin\bloodhound_x64.exe ..\Collectors\ | ||
xcopy %scriptpath%\bin\Certify.exe ..\Collectors\ | ||
xcopy %scriptpath%\bin\rusthound.exe ..\Collectors\ | ||
|
||
npm install -g electron-packager | ||
npm install | ||
SET NODE_OPTIONS=--openssl-legacy-provider | ||
setx NODE_OPTIONS --openssl-legacy-provider | ||
setx /M NODE_OPTIONS --openssl-legacy-provider | ||
::npm run build:win32 --arch=x64 | ||
npm run compile | ||
npm run package -- --platform=linux,win32 --arch=x64 --icon=src/img/icon.ico | ||
|
||
:: Download custom queries | ||
curl -L -k https://github.com/1mm0rt41PC/BloodHoundQueries/raw/master/customqueries.json --output customqueries.json | ||
|
||
:: Download Neo4J with preconfiguration | ||
curl.exe -k -L https://neo4j.com/artifact.php?name=neo4j-community-5.9.0-windows.zip --output neo4j.zip | ||
7z x neo4j.zip | ||
powershell -exec bypass -nop -Command "$neo4j = cat .\neo4j-community-*\conf\neo4j.conf ; if( $neo4j.Contains('#dbms.security.auth_enabled=false') ){ $neo4j.replace('#dbms.security.auth_enabled=false','dbms.security.auth_enabled=false') | Out-File -Encoding ASCII .\neo4j-community-*\conf\neo4j.conf ; }; mv neo4j-community-* neo4j-community" | ||
|
||
type %scriptpath%\Bloodhound\run.bat > run.bat | ||
|
||
7z a BloodHound-win32-x64 BloodHound-linux-x64 customqueries.json ..\Collectors neo4j-community run.bat |