├── license-burp.exe ├── setup.py └── license-burp.py /license-burp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PortSwigger/activation-script/master/license-burp.exe -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup 2 | import py2exe, sys 3 | 4 | sys.argv.append('py2exe') 5 | 6 | setup( 7 | options = {'py2exe': {'bundle_files': 1, 'compressed': True}}, 8 | console = [{'script': "license-burp.py"}], 9 | zipfile = None, 10 | ) 11 | -------------------------------------------------------------------------------- /license-burp.py: -------------------------------------------------------------------------------- 1 | import sys, pexpect.popen_spawn, signal 2 | 3 | if len(sys.argv) != 3: 4 | print('Usage: license-burp [yes/no] [license-file]') 5 | sys.exit(1) 6 | 7 | if sys.argv[1] != 'yes': 8 | print('You must accept the license to use Burp') 9 | sys.exit(1) 10 | 11 | license = open(sys.argv[2]).read() 12 | 13 | base = "c:/Program Files/BurpSuitePro" 14 | child = pexpect.popen_spawn.PopenSpawn('%s/jre/bin/java -Djava.awt.headless=true -jar "%s/burpsuite_pro.jar"' % (base, base), encoding='cp437') 15 | #child.logfile = sys.stdout 16 | 17 | child.expect('Do you accept the license agreement\\? \\(y/n\\)') 18 | child.sendline('y') 19 | 20 | child.expect('please paste your license key below.') 21 | child.sendline(license) 22 | 23 | child.expect('Enter preferred activation method') 24 | child.sendline('o') 25 | 26 | child.expect('Your license is successfully installed and activated.') 27 | child.kill(signal.SIGTERM) 28 | print('Your license is successfully installed and activated.') 29 | --------------------------------------------------------------------------------