This Burp extension generates automatically a minimalist Python script replaying any request(s) seen in Burp:
- In "Proxy"
- In "Repeater"
- In "Site map"
The generated Python script can then be used as a basis to write more advanced injection exploitation script (complex SQL injection, recursive local files download, site crawling ...)
- Multiple requests support (cookies are stored and forwarded)
- GET/POST support
- HTTP headers are replayed as they were in the original request
- SSL support
- Returns: response code, response time, response body
- Python 2.7
- Burp Pro
- Jython standalone WAR (https://portswigger.net/burp/help/extender.html#options_pythonenv)
- Get both Python files template.py and generate_python.py
- Edit the file generate_python.py: put the absolute path of the file template.py on your system
- Load the plugin generate_python.py in Burp
- Select one or several request(s) in Burp (Proxy, Repeater, Site Map)
- Right click -> "Generate Python Template"
- The generated Python script is displayed on the plugin's tab "PyTemplate"
- The script can be written to a file with the button "Export"