Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
UthmanPortSwigger authored Feb 24, 2022
1 parent 09e8d5f commit 9acde3c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ Working code implementation of the Java version is based on: https://forum.ports
3. Edit **BurpExtender.java** using vim or a text editor of your choice. Change **urlMatchList** to match your scope, **headersToAdd** to match the headers you want to add, and set **checkForDuplicates** to true or false. In the example under Releases (v1.0), the scope is https://portswigger-labs.net and the headers added are "Header1: value1" and "Header2: Value2"
4. Run **`./gradlew fatJar`**
5. Load the **Add-Headers-Java.jar** file created at **build/libs** into Burp Suite Professional under **`Extender > Extensions > Add`** or Burp Suite Enterprise under **`Cog/Settings icon > Extensions > Custom extensions > Upload extension`**
- https://portswigger.net/burp/documentation/enterprise/working/scans/extensions#writing-and-uploading-your-own-extensions

**Note for Enterprise users:** You will need to be running [Burp Suite Enterprise 2021.8](https://portswigger.net/burp/releases/enterprise-edition-2021-8?requestededition=enterprise) or later. Please build this extension with the Java 11 JRE in your `Enterprise installation directory > jres > 11.0.10.9.1 > Contents > Home`.<br />
The build command in step 4 will then become: `./gradlew -Dorg.gradle.java.home=/path-to-your-enterprise-installation-directory/jres/11.0.10.9.1/Contents/Home fatJar`

**Note for Enterprise users:**
- You will need to be running [Burp Suite Enterprise 2021.8](https://portswigger.net/burp/releases/enterprise-edition-2021-8?requestededition=enterprise) or later. Please build this extension with the Java 11 JRE in your `Enterprise installation directory > jres`.<br />
- The build command in step 4 will then become: `./gradlew -Dorg.gradle.java.home=<path-to-your-enterprise-installation-directory>/jres/11.x/Contents/Home fatJar` or `gradle -Dorg.gradle.java.home=<path-to-your-enterprise-installation-directory>/jres/11.x/Contents/Home fatJar`
- In the points above, replace `<path-to-your-enterprise-installation-directory>` and `11.x` as appropriate

**General Note:** If you see a `permission denied: ./gradlew` error, please run `chmod +x gradlew` before the build command
# Python
1. **`git clone https://github.com/UthmanPortSwigger/add-custom-headers.git`**
Expand Down

0 comments on commit 9acde3c

Please sign in to comment.