<commit_before>Burp Intruder File Payload Generator
========
This extension provides a way to use file contents as custom Intruder payloads.

Suppose you need to test a file upload request with your library of carefully crafted files, such as gifar, php files, jpeg, jpegs with embedded php, stuff with wrong magic numbers, etc. You can paste those binaries contents on the Repeater one by one but that is boring.
Instead you can use the Intruder configured to the payloads generated by this extension. The extension just needs to be pointed to the file payloads folder.

Choosing the input files:

![Extension Tab](https://cld.pt/dl/thumb/6d4778d0-76f1-4773-9b6f-3a52c1358f37/BurpIntruderFilePayload.png?size=xl&crop=false&format=png)


Configuring the Intruder:

![Intruder payload](https://cld.pt/dl/thumb/10f85746-3327-45c2-ab46-250639d92f02/BurpIntruderFilePayload2.png?size=xl&crop=false&format=png)


The source includes the Netbeans project stuff. You can use the native Netbeans GUI to modify the Extension Tab layout.


Usage
------
* load the extension: a new PayloadTab should appear
* at the PayloadTab, choose the payload folder
 * the extensions reads all files recursively and lists them
* in the payloads tab of the Intruder tool:
  * select Extension-generated at Payload Sets -> Payload Type
  * select File as Payload or Filename as Payload at Payload Options
  * disable the "URL-encode these characters" option, at Payloads -> Payload Encoding (specially for multipart POST requests)
  
If you just need to use the file contents as payload, select File as Payload. 
If you need both the content and filename then choose Pitchfork as the Attack type and use File as Payload for one Payload set and Filename as Payload for the other.


TODO
------<commit_msg>update readme with local images<commit_after>Burp Intruder File Payload Generator
========
This extension provides a way to use file contents as custom Intruder payloads.

Suppose you need to test a file upload request with your library of carefully crafted files, such as gifar, php files, jpeg, jpegs with embedded php, stuff with wrong magic numbers, etc. You can paste those binaries contents on the Repeater one by one but that is boring.
Instead you can use the Intruder configured to the payloads generated by this extension. The extension just needs to be pointed to the file payloads folder.

Choosing the input files:

![Extension Tab](/img/BurpIntruderFilePayload.png?raw=true "Extension Tab")


Configuring the Intruder:

![Intruder payload](/img/BurpIntruderFilePayload2.png?raw=true "Intruder payload")


The source includes the Netbeans project stuff. You can use the native Netbeans GUI to modify the Extension Tab layout.


Usage
------
* load the extension: a new PayloadTab should appear
* at the PayloadTab, choose the payload folder
 * the extensions reads all files recursively and lists them
* in the payloads tab of the Intruder tool:
  * select Extension-generated at Payload Sets -> Payload Type
  * select File as Payload or Filename as Payload at Payload Options
  * disable the "URL-encode these characters" option, at Payloads -> Payload Encoding (specially for multipart POST requests)
  
If you just need to use the file contents as payload, select File as Payload. 
If you need both the content and filename then choose Pitchfork as the Attack type and use File as Payload for one Payload set and Filename as Payload for the other.


TODO
------
{'fraction_non_alphanumeric': 0.05669655770899624, 'fraction_numerical': 0.015041943881978595, 'mean_word_length': 4.497615262321145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719678', 'n_tokens_mistral': 1002, 'n_tokens_neox': 913, 'n_words': 480}