Advertisement
primall

BurpSuite Installation Windows

Dec 1st, 2022
924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Name is Important
  2. echo "
  3.               ######    ######    #  ##     ##        #        #       #
  4.               #     #   #     #   #  # #   # #       # #       #       #
  5.               #     #   #     #   #  #  # #  #      #   #      #       #
  6.               ######    ######    #  #   #   #     #######     #       #
  7.               #         #   #     #  #       #    #       #    #       #
  8.               #         #    #    #  #       #   #         #   #       #
  9.               #         #     #   #  #       #  #           #  ######  ######
  10. "
  11.  
  12. # Set Wget Progress to Silent, Becuase it slows down Downloading by +50x
  13. echo "Setting Wget Progress to Silent, Becuase it slows down Downloading by +50x`n"
  14. $ProgressPreference = 'SilentlyContinue'
  15.  
  16. # Check Java Availability or Download J
  17. $jdk17 = java -version
  18. if (!($jdk17)){
  19.     echo "`t`tDownloading Java JDK-17 ...."
  20.     $url="https://aka.ms/download-jdk/microsoft-jdk-17.0.5-windows-x64.msi"
  21.     $out="jdk-17.exe"
  22.     Invoke-WebRequest -Uri $url -OutFile $out    
  23.     echo "`n`t`tJDK-17 Downloaded, lets start the Installation process"
  24.     start -wait jdk-17.exe
  25.     rm jdk-17.exe
  26. }else{
  27.     echo "Required JDK-17 is Installed"
  28.     $jdk17
  29. }
  30.  
  31. # Downloading Burp Suite Professional
  32. if (Test-Path Burp-Suite-Pro.jar){
  33.     echo "Burp Suite Professional JAR file is available.`nChecking its Integrity ...."
  34.     if (((Get-Item Burp-Suite-Pro.jar).length/1MB) -lt 500 ){
  35.         echo "`n`t`tFiles Seems to be corrupted `n`t`tDownloading Latest Burp Suite Professional ...."
  36.         wget "https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=Jar" -O "Burp-Suite-Pro.jar"
  37.         echo "`nBurp Suite Professional is Downloaded.`n"
  38.     }else {echo "File Looks fine. Lets proceed for Execution"}
  39. }else {
  40.     echo "`n`t`tDownloading Latest Burp Suite Professional ...."
  41.     wget "https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=jar" -O Burp-Suite-Pro.jar
  42.     echo "`nBurp Suite Professional is Downloaded.`n"
  43. }
  44.  
  45. # Creating Burp.bat file with command for execution
  46. if (Test-Path burp.bat) {rm burp.bat}
  47. $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`""
  48. $path | add-content -path Burp.bat
  49. echo "`nBurp.bat file is created"
  50.  
  51.  
  52. # Creating Burp-Suite-Pro.vbs File for background execution
  53. if (Test-Path Burp-Suite-Pro.vbs) {
  54.    Remove-Item Burp-Suite-Pro.vbs}
  55. echo "Set WshShell = CreateObject(`"WScript.Shell`")" > Burp-Suite-Pro.vbs
  56. add-content Burp-Suite-Pro.vbs "WshShell.Run chr(34) & `"$pwd\Burp.bat`" & Chr(34), 0"
  57. add-content Burp-Suite-Pro.vbs "Set WshShell = Nothing"
  58. echo "`nBurp-Suite-Pro.vbs file is created."
  59.  
  60. # Remove Additional files
  61. rm Kali_Linux_Setup.sh
  62. del -Recurse -Force .\.github\
  63.  
  64.  
  65. # Lets Activate Burp Suite Professional with keygenerator and Keyloader
  66. echo "Reloading Environment Variables ...."
  67. $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
  68. echo "`n`nStarting Keygenerator ...."
  69. start-process java.exe -argumentlist "-jar keygen.jar"
  70. echo "`n`nStarting Burp Suite Professional"
  71. 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"
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement