Skip to main content

Generate ffuf flag recommendations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffuflags-0.0.1.2.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

ffuflags-0.0.1.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file ffuflags-0.0.1.2.tar.gz.

File metadata

  • Download URL: ffuflags-0.0.1.2.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for ffuflags-0.0.1.2.tar.gz
Algorithm Hash digest
SHA256 a41b0885316d4d6837d966eec13df7315b47d0ef87c17a780309146b859dc760
MD5 9a87688ed4ace330021ff6a861edf7ae
BLAKE2b-256 d9a4444781722e888dea9de2473153b4e7a8d52557d8973ce0b5432b121e8845

See more details on using hashes here.

File details

Details for the file ffuflags-0.0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ffuflags-0.0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for ffuflags-0.0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8edab8ec86f11b13a444226de9bfb206a3af5fc509d6a92328fc66c4728e34b
MD5 008d15a2ffce58f0cbd6047252448876
BLAKE2b-256 2cc1d052850621a6a6516cb7472ed397c97773b859b3f1259d04d07a2a0383ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page