Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celsogbezerra/Copy-as-JavaScript-Request
Copy as JavaScript Request plugin for Burp Suite
https://github.com/celsogbezerra/Copy-as-JavaScript-Request
burp-extensions burp-plugin burpsuite java-8 javascript
Last synced: 2 months ago
JSON representation
Copy as JavaScript Request plugin for Burp Suite
- Host: GitHub
- URL: https://github.com/celsogbezerra/Copy-as-JavaScript-Request
- Owner: celsogbezerra
- License: gpl-3.0
- Created: 2019-05-31T13:03:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-31T14:29:47.000Z (over 5 years ago)
- Last Synced: 2024-08-02T00:23:00.727Z (6 months ago)
- Topics: burp-extensions, burp-plugin, burpsuite, java-8, javascript
- Language: Java
- Homepage:
- Size: 97.7 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-burp-extensions - Copy as JavaScript Request - This Burp Extension copies the selected request to the clipboard as JavaScript Fetch API. (Scripting)
- awesome-hacking-lists - celsogbezerra/Copy-as-JavaScript-Request - Copy as JavaScript Request plugin for Burp Suite (Java)
README
# Copy as JavaScript Request - Burp Extension
This Burp Extension copies the selected request to the clipboard as JavaScript Fetch API.
# Installation
1. Download the **JavaScript-Request.jar** file;
2. Open your Burp Suite;
3. Following the path: Extender\Extensions;
4. Click on Add button, select **Java** option and load this file.# Usage
1. Select a random request;
2. Click on right-button of mouse over request or click on **Action** option;
3. Select the **Copy as JavaScript Request** option;
4. Paste the string on browser console or other place.# Sample
1. Copying the request:
![Sample](/image/sample.png)
2. JavaScript code:
```javascript
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.
# References:
* [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
* [BApp Store](https://portswigger.net/bappstore)