Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name is Important
- echo "
- ###### ###### # ## ## # # #
- # # # # # # # # # # # # #
- # # # # # # # # # # # # #
- ###### ###### # # # # ####### # #
- # # # # # # # # # #
- # # # # # # # # # #
- # # # # # # # # ###### ######
- "
- # Set Wget Progress to Silent, Becuase it slows down Downloading by +50x
- echo "Setting Wget Progress to Silent, Becuase it slows down Downloading by +50x`n"
- $ProgressPreference = 'SilentlyContinue'
- # Check Java Availability or Download J
- $jdk17 = java -version
- if (!($jdk17)){
- echo "`t`tDownloading Java JDK-17 ...."
- $url="https://aka.ms/download-jdk/microsoft-jdk-17.0.5-windows-x64.msi"
- $out="jdk-17.exe"
- Invoke-WebRequest -Uri $url -OutFile $out
- echo "`n`t`tJDK-17 Downloaded, lets start the Installation process"
- start -wait jdk-17.exe
- rm jdk-17.exe
- }else{
- echo "Required JDK-17 is Installed"
- $jdk17
- }
- # Downloading Burp Suite Professional
- if (Test-Path Burp-Suite-Pro.jar){
- echo "Burp Suite Professional JAR file is available.`nChecking its Integrity ...."
- if (((Get-Item Burp-Suite-Pro.jar).length/1MB) -lt 500 ){
- echo "`n`t`tFiles Seems to be corrupted `n`t`tDownloading Latest Burp Suite Professional ...."
- wget "https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=Jar" -O "Burp-Suite-Pro.jar"
- echo "`nBurp Suite Professional is Downloaded.`n"
- }else {echo "File Looks fine. Lets proceed for Execution"}
- }else {
- echo "`n`t`tDownloading Latest Burp Suite Professional ...."
- wget "https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=jar" -O Burp-Suite-Pro.jar
- echo "`nBurp Suite Professional is Downloaded.`n"
- }
- # Creating Burp.bat file with command for execution
- if (Test-Path burp.bat) {rm burp.bat}
- $path = "java --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -javaagent:`"$pwd\loader.jar`" -noverify -jar `"$pwd\Burp-Suite-Pro.jar`""
- $path | add-content -path Burp.bat
- echo "`nBurp.bat file is created"
- # Creating Burp-Suite-Pro.vbs File for background execution
- if (Test-Path Burp-Suite-Pro.vbs) {
- Remove-Item Burp-Suite-Pro.vbs}
- echo "Set WshShell = CreateObject(`"WScript.Shell`")" > Burp-Suite-Pro.vbs
- add-content Burp-Suite-Pro.vbs "WshShell.Run chr(34) & `"$pwd\Burp.bat`" & Chr(34), 0"
- add-content Burp-Suite-Pro.vbs "Set WshShell = Nothing"
- echo "`nBurp-Suite-Pro.vbs file is created."
- # Remove Additional files
- rm Kali_Linux_Setup.sh
- del -Recurse -Force .\.github\
- # Lets Activate Burp Suite Professional with keygenerator and Keyloader
- echo "Reloading Environment Variables ...."
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
- echo "`n`nStarting Keygenerator ...."
- start-process java.exe -argumentlist "-jar keygen.jar"
- echo "`n`nStarting Burp Suite Professional"
- java --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -javaagent:"loader.jar" -noverify -jar "Burp-Suite-Pro.jar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement