text:
# Name is Important
write-host "  .d8888b.           888       .d8888b.               8888888888P                  888    " -foregroundcolor "Red"
write-host " d88P  Y88b          888      d88P  Y88b                    d88P                   888    " -foregroundcolor "Red"
write-host " 888    888          888           .d88P                   d88P                    888    " -foregroundcolor "Red"
write-host " 888        888  888 88888b.      8888'  888d888          d88P    .d88b.  .d8888b  888888 " -foregroundcolor "Red"
write-host " 888        888  888 888 '88b      'Y8b. 888P'           d88P    d8P  Y8b 88K      888    " -foregroundcolor "white"
write-host " 888    888 888  888 888  888 888    888 888            d88P     88888888 'Y8888b. 888    " -foregroundcolor "white"
write-host " Y88b  d88P Y88b 888 888 d88P Y88b  d88P 888           d88P      Y8b.          X88 Y88b.  " -foregroundcolor "white"
write-host "  'Y8888P'   'Y88888 88888P'   'Y8888P'  888          d8888888888 'Y8888   88888P'  'Y888 " -foregroundcolor "green"
write-host "                 888                                                                      " -foregroundcolor "green"
write-host "            Y8b d88P                                                                      " -foregroundcolor "green"
write-host "             'Y88P'                                                                       " -foregroundcolor "green"

echo "  This script is made by Cyber Zest"
# 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 JDK-18 or 19 Availability or Download JDK-18 or 19
$jdk19 = Get-WmiObject -Class Win32_Product -filter "Vendor='Oracle Corporation'" |where Caption -clike "Java(TM) SE Development Kit 19*"
if (!($jdk19)){
    echo "`t`tDownnloading Java JDK-19 ...."
    wget "https://download.oracle.com/java/19/latest/jdk-19_windows-x64_bin.exe" -O jdk-19.exe
    echo "`n`t`tJDK-19 Downloaded, lets start the Installation process"
    start -wait jdk-19.exe
    rm jdk-19.exe
}else{
    echo "Required JDK-19 is Installed"
    $jdk19
}

# Check JRE-8 Availability or Download JRE-8
$jre8 = Get-WmiObject -Class Win32_Product -filter "Vendor='Oracle Corporation'" |where Caption -clike "Java 8 Update *"
if (!($jre8)){
    echo "`n`t`tDownloading Java JRE ...."
    wget "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=246474_2dee051a5d0647d5be72a7c0abff270e" -O jre-8.exe
    echo "`n`t`tJRE-8 Downloaded, lets start the Installation process"
    start -wait jre-8.exe
    rm jre-8.exe
}else{
    echo "`n`nRequired JRE-8 is Installed`n"
    $jre8
}

# Downloading Burp Suite Professional
if (Test-Path burpsuite_pro_v*.jar){
    echo "Burp Suite Professional JAR file is available.`nChecking its Integrity ...."
    if (((Get-Item burpsuite_pro_v*.jar).length/1MB) -lt 500 ){
        echo "`n`t`tFiles Seems to be corrupted `n`t`tDownloading Latest Burp Suite Professional ...."
		$version = (Invoke-WebRequest -Uri "https://portswigger.net/burp/releases/community/latest" -UseBasicParsing).Links.href | Select-String -Pattern "product=pro&version=*" | Select-Object -First 1 | ForEach-Object { [regex]::Match($_, '\d+\.\d+\.\d+').Value }
		wget "https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=jar" -O "burpsuite_pro_v$version.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 ...."
	$version = (Invoke-WebRequest -Uri "https://portswigger.net/burp/releases/community/latest" -UseBasicParsing).Links.href | Select-String -Pattern "product=pro&version=*" | Select-Object -First 1 | ForEach-Object { [regex]::Match($_, '\d+\.\d+\.\d+').Value }
	wget "https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=jar" -O "burpsuite_pro_v$version.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 --add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.Opcodes=ALL-UNNAMED -javaagent:`"$pwd\loader.jar`" -noverify -jar `"$pwd\burpsuite_pro_v$version.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 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 loader.jar"
echo "`n`nStarting Burp Suite Professional"
java --add-opens=java.desktop/javax.swing=ALL-UNNAMED--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.Opcodes=ALL-UNNAMED -javaagent:"loader.jar" -noverify -jar "burpsuite_pro_v$version.jar"

repo_language: PowerShell

mime_type: text/html


text:
#!/bin/bash
OR='\e[38;5;202m'
GR='\e[32m'
NL='\e[0m'
WH='\e[97m'
BL='\e[34m'

echo -e "
${OR} ██████╗██╗   ██╗██████╗ ██████╗ ██████╗ ███████╗███████╗███████╗████████╗${NL}
${OR}██╔════╝╚██╗ ██╔╝██╔══██╗╚════██╗██╔${BL}══${NL}${OR}██╗╚══███╔╝██╔════╝██╔════╝╚══██╔══╝${NL}
${WH}██║      ╚████╔╝ ██████╔╝ █████╔╝${BL}██████╔╝${NL}${WH}  ███╔╝ █████╗  ███████╗   ██║   ${NL}
${WH}██║       ╚██╔╝  ██╔══██╗ ╚═══██╗${BL}██╔══██╗${NL}${WH} ███╔╝  ██╔══╝  ╚════██║   ██║   ${NL}
${GR}╚██████╗   ██║   ██████╔╝██████╔╝██║${BL}  █${NL}${GR}█║███████╗███████╗███████║   ██║   ${NL}
${GR} ╚═════╝   ╚═╝   ╚═════╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝   ╚═╝   ${NL}
"
echo "  This script is made by CyberZest
"

# Check if Java JDK 19 is installed
if ! command -v javac >/dev/null 2>&1; then
    echo "Java JDK 19 is not installed, installing"
    mkdir -p /usr/local/java
    mkdir -p /usr/local/java/jdk19
    curl -L https://download.oracle.com/java/19/latest/jdk-19_linux-x64_bin.tar.gz -o jdk19.tar.gz
    tar -xf jdk19.tar.gz -C /usr/local/java/jdk19 --strip-components=1
    rm jdk19.tar.gz
    echo "export JAVA_HOME=/usr/local/java/jdk19" | sudo tee -a /etc/environment
    echo "export PATH=\$PATH:\$JAVA_HOME/bin" | sudo tee -a /etc/environment
    sudo update-alternatives --install /usr/bin/java java /usr/local/java/jdk19/bin/java 1
    sudo update-alternatives --install /usr/bin/javac javac /usr/local/java/jdk19/bin/javac 1
    source /etc/profile
    echo "Java JDK 19 downloaded and installed successfully"
fi

# Check if Java JRE 8 is installed
if ! command -v java >/dev/null 2>&1; then
    jre8_url=https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244548_89d678f2be164786b292527658ca1605
    sudo mkdir -p /usr/local/java/jre8
    sudo curl -L -o /usr/local/java/jre8/jre8.tar.gz $jre8_url
    sudo tar -xzf /usr/local/java/jre8/jre8.tar.gz -C /usr/local/java/jre8
    sudo rm /usr/local/java/jre8/jre8.tar.gz
    sudo update-alternatives --install /usr/bin/java java /usr/local/java/jre8/jre1.8.0_301/bin/java 1
    sudo update-alternatives --install /usr/bin/javac javac /usr/local/java/jre8/jre1.8.0_301/bin/javac 1
    sudo update-alternatives --set java /usr/local/java/jre8/jre1.8.0_301/bin/java 1
    sudo update-alternatives --set javac /usr/local/java/jre8/jre1.8.0_301/bin/javac 1
    echo "Java JRE 8 downloaded and installed successfully"
fi

if [[ $EUID -eq 0 ]]; then
    # Download Burp Suite Profesional Latet Version
    echo 'Downloading Burp Suite Professional ....'
    mkdir -p /usr/share/burpsuite
    cp loader.jar /usr/share/burpsuite/
    cp burp_suite.ico /usr/share/burpsuite/
    rm Windows_setup.ps1
    rm -rf .git
    cd /usr/share/burpsuite/
	rm burpsuite.jar
    html=$(curl -s https://portswigger.net/burp/releases)
    version=$(echo $html | grep -Po '(?<=/burp/releases/professional-community-)[0-9]+\-[0-9]+\-[0-9]+' | head -n 1)
    Link="https://portswigger-cdn.net/burp/releases/download?product=pro&version=&type=jar"
    echo $version
    wget "$Link" -O burpsuite_pro_v$version.jar --quiet --show-progress
    sleep 2

    # Execute Burp Suite Professional with Keyloader
    echo 'Executing Burp Suite Professional with Keyloader'
    echo "java --add-opens=java.desktop/javax.swing=ALL-UNNAMED--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.Opcodes=ALL-UNNAMED -javaagent:$(pwd)/loader.jar -noverify -jar $(pwd)/burpsuite_pro_v$version.jar &" > burpsuite
    chmod +x burpsuite
    cp burpsuite /bin/burpsuite

    # execute Keygenerator
    echo 'Starting Keygenerator'
    (java -jar loader.jar) &
    sleep 3s
    (./burpsuite)
else
    echo "Execute Command as Root User"
    exit
fi


text:
# Burp-Suite-Pro

--------------------------------------------------------------------------------------------
# Burp Suite Professional Installation steps for Windows
	--> Copy the downloaded files to C:\Burp.
		Make new directory "Burp" in C Drive for faster access.
	--> Open Powershell and execute below command to set Script Execution Policy.
		Set-ExecutionPolicy -ExecutionPolicy bypass -Scope process
	--> Now Execute Windows_Setup.ps1 file in Powershell to Complete Installation.
		./Windows_Setup.ps1
	--> Change the icon of **Burp-Suite-Pro.vbs** to the given icon
		Create a shortcut to Desktop. Right Click over **Burp-Suite-Pro.vbs** Go to Shortcut tab, and below there is **Change Icon** tab.
		Click there and choose the burp-suite.ico from C:\Burp\
		![image](https://user-images.githubusercontent.com/29830064/230825172-16c9cfba-4bca-46a4-86df-b352a4330b12.png)

	--> For Start Menu Entry, copy **Burp-Suite-Pro.vbs** file to
		C:\ProgramData\Microsoft\Windows\Start Menu\Programs\

-----------------------------------------------------------------------------------------------------------------
# Burp Suite Professional Installation steps for Kali-Linux
	--> Execute Kali_Linux_Setup.sh file as root user

-----------------------------------------------------------------------------------------------------------------
# Burp Suite Pro Activation Steps
	1. Modify License String like "license to xxxxxxxx"
	2. Copy License key from loader.jar(Keygenerator) and paste in Burp Suite Pro and click Next.
	3. Select Manual Activation Option on your bottom Right in Burp Suite Pro.
	4. Copy License Request from BurpSuite_Pro and paste in Keygenerator.
	5. Copy license response from Keygenerator and paste in Burp Suite Pro, then next and Done.

# Video Tutorial
	# For Windows
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YB-8s4johLc/0.jpg)](https://www.youtube.com/watch?v=YB-8s4johLc)

	# For Kali Linux, Parrot OS, Ubuntu
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/47RuPyGnq_0/0.jpg)](https://www.youtube.com/watch?v=47RuPyGnq_0)

-----------------------------------------------------------------------------------------------------------------
# Executing Burp Suite Profession after Activation
	--> Windows :-: You can start Burp Suite Professional from Start Menu.
	--> Kali Linux :-: You can start Burp Suite Professional by writing **burpsuite** in terminal.

-----------------------------------------------------------------------------------------------------------------