Skip to main content

ffuflags (formerly parse_ffuf)

A way to generate filter flags for ffuf from a previous fuzz + more to come!

Motivation

Typically, an ffuf user will use the -ac autocalibration flag in order to automatically apply filters based off of initial tests ffuf will do before beginning a full fuzz.

However, in my experience, I have found that the initial autocalibration ends up missing a lot of values that could be filtered-out.

Manually-writing filter flags has been time-consuming, but I realized that I could automate the process with my current (and possibly overall) favorite programming language: Python!

What this does is generate a string representing flags that are to be passed to ffuf.

I have a fuzzing script to help manage configuration options that I regularly pass into ffuf, so as an example in a script, you could do something like this:

ffuf -X GET -w $WORDLIST0 $FLAGS -u "$1/FUZZ" $HEADERS -o $OUTFILE_SMALL;
FILTER=$(python3 -m ffuflags -i "$OUTFILE_SMALL");
ffuf -X GET -w $WORDLIST1 $FLAGS $FILTER -u "$1/FUZZ" $HEADERS -o $OUTFILE_BIG;

Usage

python3 -m ffuflags -v -i <input_file> [-s | -p | -c <status_code>]
python3 -m ffuflags --verbose --input <input_file> [--sort-by-value | --sort-by-param | --code <status_code>]

Example

Simple Usage

python3 -m ffuflags -i myfuzz.json 

Filtering status codes from which flags you generate

python3 -m ffuflags -i myfuzz.json -c 200
python3 -m ffuflags -i myfuzz.json --code 200
python3 -m ffuflags -i myfuzz.json -c 200,404
python3 -m ffuflags -i myfuzz.json --code 200,404

Print Extra Table of Results by Category (status code, length, duration, words, lines)

python3 -m ffuflags -v -i myfuzz.json 
python3 -m ffuflags --verbose -i myfuzz.json 

Sorting the Extra Table of Results

python3 -m ffuflags -v -s -i myfuzz.json 
python3 -m ffuflags -v --sort-by-value -i myfuzz.json 
python3 -m ffuflags -v --sort-by-param -i myfuzz.json 

Did you find this tool helpful?

Please consider sending me crypto through one of these addresses:

Bitcoin: 38p6p4gLqfvZ4LShmWpNnphN1TjB8WgT8M Litecoin: MU8YSVUVwKDiaQfPurW8cVzxjbeZc2qv2S Ethereum: 0xC8E4ac8ee54698dDf47d7343e12aB83985F3900A Monero: 87eZsjdCFHtQXEf4A2Mer1XjJmLmD6N1b2maovAR4XtSYs4EupxZB7UfmG9eyb8qXpVvR9HdsEpf7K3A762w3LcNTg1fLTC

Or, you can become a patron on my Patreon page!

I stream regularly on Twitch as well at: https://www.twitch.tv/darkmage666

Release files for ffuflags 0.0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffuflags 0.0.1.2
File Size Uploaded
ffuflags-0.0.1.2.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ffuflags 0.0.1.2
File Interpreter ABI Platform
ffuflags-0.0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 31.9 kB

Release files / ffuflags-0.0.1.2.tar.gz

Download URL ffuflags-0.0.1.2.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a41b0885316d4d6837d966eec13df7315b47d0ef87c17a780309146b859dc760
BLAKE2b-256 checksum
How to use checksums
d9a4444781722e888dea9de2473153b4e7a8d52557d8973ce0b5432b121e8845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / ffuflags-0.0.1.2-py3-none-any.whl

Download URL ffuflags-0.0.1.2-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8edab8ec86f11b13a444226de9bfb206a3af5fc509d6a92328fc66c4728e34b
BLAKE2b-256 checksum
How to use checksums
2cc1d052850621a6a6516cb7472ed397c97773b859b3f1259d04d07a2a0383ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1.2 This release

2 release files

0.0.1.1

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page