-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathinit.bat
More file actions
49 lines (41 loc) · 2.21 KB
/
init.bat
File metadata and controls
49 lines (41 loc) · 2.21 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
:: Init Script for cmd.exe
:: Sets some nice defaults
:: Created as part of PentestBox project
:: Find root dir
@if not defined pentestbox_ROOT (
for /f %%i in ("%ConEmuDir%\..\..") do @set pentestbox_ROOT=%%~fi
)
:: Change the prompt style
@prompt $E[1;32;40m$P$S{git}$S$_$E[1;30;40m{lamb}$S$E[0m
:: Pick right version of clink
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
set architecture=86
) else (
set architecture=64
)
:: Run clink
@"%pentestbox_ROOT%\base\clink\clink_x%architecture%.exe" inject --quiet --profile "%pentestbox_ROOT%\config"
:: Prepare for msysgit
:: I do not even know, copypasted from their .bat
@set PLINK_PROTOCOL=ssh
@if not defined TERM set TERM=cygwin
:: Enhance Path
@set git_install_root=%pentestbox_ROOT%\base\PortableGit
@set PATH=%pentestbox_ROOT%\bin;%git_install_root%\bin;%git_install_root%\mingw32\bin;%git_install_root%\usr\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim74;%pentestbox_ROOT%\base\curl\bin;%pentestbox_ROOT%\base\ruby\bin;%pentestbox_ROOT%\base\ruby_devkit\bin;%pentestbox_ROOT%\base\ruby_devkit\mingw\bin;%pentestbox_ROOT%\base\strawberry-perl\perl\bin;%pentestbox_ROOT%\base\strawberry-perl\c\bin;%pentestbox_ROOT%\base\strawberry-perl\;%pentestbox_ROOT%\bin\nmap;%pentestbox_ROOT%\base\jdk1.8.0_74\bin;%pentestbox_ROOT%\base\jdk1.8.0_74\jre\bin;%pentestbox_ROOT%\base\jdk1.8.0_74\jre\lib;%pentestbox_ROOT%\bin\aircrack-ng-1.2-rc4-win\bin\32bit;%pentestbox_ROOT%\bin\password_attacks\rainbowcrack;%pentestbox_ROOT%\bin\androidsecurity\dex2jar;%pentestbox_ROOT%\bin\androidsecurity\sdk\platform-tools;%pentestbox_ROOT%\bin\7za;%pentestbox_ROOT%\bin\wget;%SystemRoot%\system32;%pentestbox_ROOT%\base\python;%pentestbox_ROOT%\base\python3
@set CURL_CA_BUNDLE=C:\PentestBox\base\curl\bin\ca-bundle.crt
@set SSL_CERT_FILE=C:\PentestBox\base\curl\bin\cacert.pem
:: Add aliases
@doskey /macrofile="%pentestbox_ROOT%\config\aliases"
:: Custom aliases
@if exist "%pentestbox_ROOT%\bin\customtools\customaliases" (
@doskey /macrofile="%pentestbox_ROOT%\bin\customtools\customaliases"
)
:: Set home path
@if not defined HOME set HOME=%USERPROFILE%
@if defined pentestbox_START (
@cd /d "%pentestbox_START%"
) else (
@if "%CD%\" == "%pentestbox_ROOT%" (
@cd /d "%HOME%"
)
)