Awesome
Copy as JavaScript Request - Burp Extension
This Burp Extension copies the selected request to the clipboard as JavaScript Fetch API.
Installation
- Download the JavaScript-Request.jar file;
- Open your Burp Suite;
- Following the path: Extender\Extensions;
- Click on Add button, select Java option and load this file.
Usage
- Select a random request;
- Click on right-button of mouse over request or click on Action option;
- Select the Copy as JavaScript Request option;
- Paste the string on browser console or other place.
Sample
- Copying the request:
- JavaScript code:
fetch('https://content-signature.cdn.mozilla.net:443/chains/remote-settings.content-signature.mozilla.org-20190729.prod.chain',{
method: 'GET',
headers: {
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0',
'Accept': '*/*',
'Accept-Language': 'pt-BR,en-US;q=0.7,en;q=0.3',
'Accept-Encoding': 'gzip, deflate',
'Connection': 'close'
}
});
Dependencies
This extension was deployed with JDK 1.8+, tested on OpenJDK 1.8.0_212, through the openjdk-8-jdk Debian/Ubuntu package. But, the source code can be found in source folder.