malerisch / burp-csj

BurpCSJ extension for Burp Pro - Crawljax Selenium JUnit integration
MIT License
33 stars 11 forks source link

Portable Firefox Issues #10

Open freeload101 opened 6 years ago

freeload101 commented 6 years ago

Updated 12/16 :Still having issues with firefox. I was able to get chromedriver to work. java checks for chrome in a few places so I just dropped the binary there. Here is my script:

@echo off

echo this includes:
echo portable java 8 64bit
echo python support in burp
echo other plugins :)
echo rmccurdy.com

echo killing java and firefox
taskkill /F /IM java.exe
taskkill /F /IM javaw.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM GoogleChromePortable

echo flushing DNS cache
ipconfig /flushdns

echo setting up config/bapp plugins ( this overwrites any and all settings in  "%userprofile%\AppData\Roaming\BurpSuite"

mkdir "%userprofile%\AppData\Roaming\BurpSuite"

xcopy /q /y /s /i ".\_BAPPS" "%userprofile%\AppData\Roaming\BurpSuite"

echo setting up RDP timeouts to 0 

reg add  "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v MaxIdleTime /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration" /v MaxIdleTime /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\Console" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\Console" /v MaxIdleTime /t REG_DWORD /d "0" /f

reg add  "HKLM\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp" /v MaxIdleTime /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet001\Control\Terminal Server\DefaultUserConfiguration" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet001\Control\Terminal Server\DefaultUserConfiguration" /v MaxIdleTime /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\Console" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\Console" /v MaxIdleTime /t REG_DWORD /d "0" /f

reg add  "HKLM\SYSTEM\ControlSet002\Control\Terminal Server\WinStations\RDP-Tcp" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet002\Control\Terminal Server\WinStations\RDP-Tcp" /v MaxIdleTime /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet002\Control\Terminal Server\DefaultUserConfiguration" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet002\Control\Terminal Server\DefaultUserConfiguration" /v MaxIdleTime /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet002\Control\Terminal Server\WinStations\Console" /v MaxDisconnectionTime  /t REG_DWORD /d "0" /f
reg add  "HKLM\SYSTEM\ControlSet002\Control\Terminal Server\WinStations\Console" /v MaxIdleTime /t REG_DWORD /d "0" /f

echo updateing setting path to firefox for cralwjax 
path %PATH%;%CD%\FirefoxPortable_33\App\Firefox;%CD%\GoogleChromePortable\App\Chrome-bin

rem start firefox.exe
start chrome.exe

REM echo cleaning config
REM regedit /s INIT_WIPE_CONFIG.reg

REM echo importing config
REM regedit /s INIT_BASE_CONFIG.reg

REM echo importing licence file
REM regedit /s H:\PRIVATE\BURP\rmccurdyATkpmgDOTcom_OCT_2014.reg

echo listing latest burp suite jar files
for  %%a in (dir/s /OD burpsu*.jar) do (
set var1=%%a
) 

cd java
cd bin

echo starting latest burp suite

rem MORE RAM ! start javaw -Xms500m -Xmx500m -XX:MaxPermSize=500m -jar  ..\..\%var1%
cd .\GoogleChromePortable\App\Chrome-bin\

start javaw -Xms2000m -Xmx2000m -XX:MaxPermSize=2000m -jar  ..\..\%var1%

rem java -classpath ../../burp.jar;../../BurpProxyExtender.jar burp.StartBurp

======================================================================================

This is what happends when I set path to firefox.exe in %PATH% maybe something in the command line is breaking the usage of my imported certs some how

"C:\BurpPortable\FirefoxPortable\App\Firefox64\firefox.exe" -contentproc --channel="3244.20.1003889084\86971383" -childID 3 -isForBrowser -intPrefs 5:50|6:-1|28:1000|34:30|35:5|36:30|45:128|46:10000|51:0|53:400|54:1|55:0|56:0|61:0|62:120|63:120|98:2|99:1|114:5000|124:0|126:0|137:10000|149:-1|154:128|155:10000|156:0|162:24|163:32768|165:0|166:0|174:1|178:1048576|179:100|180:5000|182:600|184:1|193:3|197:0|206:60000| -boolPrefs 1:0|2:0|4:1|26:1|27:1|30:0|33:1|37:1|38:0|39:0|40:0|43:1|44:1|47:0|48:0|49:0|50:0|52:0|57:1|58:1|59:0|60:1|64:1|65:1|66:0|67:1|68:1|69:0|70:1|73:0|74:0|77:1|78:1|82:1|83:1|84:1|85:0|86:0|88:0|89:0|90:1|91:0|92:1|95:1|97:0|100:1|101:0|108:0|113:0|116:1|119:1|121:1|125:0|128:1|131:1|132:1|138:1|139:0|140:1|142:0|148:0|150:1|151:0|152:1|153:1|160:0|161:0|164:1|167:0|169:1|171:1|172:0|177:0|181:1|186:0|187:0|188:0|189:1|190:0|191:1|192:0|195:0|198:0|199:0|200:1|201:1|202:0|203:1|204:1|205:1|207:0|208:0|210:0|218:1|219:1|220:0|221:0|222:0| -stringPrefs "3:7;release|96:0;|141:3;1.0|158:332;  ¼½¾ǃː̷̸։֊׃״؉؊٪۔܁܂܃܄ᅟᅠ᜵           ​‎‏‐’․‧

‪‫‬‭‮ ‹›⁁⁄⁒ ⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟∕∶⎮╱⧶⧸⫻⫽⿰⿱⿲⿳⿴⿵⿶⿷⿸⿹⿺⿻ 。〔〕〳゠ㅤ㈝㈞㎮㎯㏆㏟꞉︔︕︿﹝﹞./。ᅠ�|159:4;high|194:38;{588d95b0-3558-49b0-abc9-b3faa3231d71}|" -schedulerPrefs 0001,2 -greomni "C:\BurpPortable\FirefoxPortable\App\Firefox64\omni.ja" -appomni "C:\BurpPortable\FirefoxPortable\App\Firefox64\browser\omni.ja" -appdir "C:\BurpPortable\FirefoxPortable\App\Firefox64\browser" 3244 - tab

Thanks for the best burp plugin EVER ! ( ill be working on this and making a few more idiot proof videos later ..that is if I get it mostly working portable )