Added 405 Method Not Allowed to the list of status codes matched by default (#373)

* Update .ffufrc to match 405 status code responses by default

* Updated README.md with the new default match status codes

* Updated default match codes to include 405 Method Not Allowed

405 Method not Allowed is returned by many api endpoints when accessed via an improper method. ffuf sends GET reqeusts by default and if an endpoint only supports POST it will return 405 and ffuf will not think it's a valid endpoint unless specifically told to match 405 status codes

* Added choket to contributors

* Update CHANGELOG.md
This commit is contained in:
Stefan Stojanovski 2021-01-24 17:54:30 +01:00 committed by GitHub
parent 4bea474ae6
commit 6a7bdc0f93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,7 @@
## Changelog
- master
- New
- Added 405 Method Not Allowed to list of status codes matched by default.
- New CLI flag `-rate` to set maximum rate of requests per second. The adjustment is dynamic.
- New CLI flag `-config` to define a configuration file with preconfigured settings for the job.
- Ffuf now reads a default configuration file `$HOME/.ffufrc` upon startup. Options set in this file

View file

@ -4,6 +4,7 @@
* [bjhulst](https://github.com/bjhulst)
* [bsysop](https://twitter.com/bsysop)
* [ccsplit](https://github.com/ccsplit)
* [choket](https://github.com/choket)
* [codingo](https://github.com/codingo)
* [c_sto](https://github.com/c-sto)
* [Damian89](https://github.com/Damian89)

View file

@ -166,7 +166,7 @@ GENERAL OPTIONS:
-v Verbose output, printing full URL and redirect location (if any) with the results. (default: false)
MATCHER OPTIONS:
-mc Match HTTP status codes, or "all" for everything. (default: 200,204,301,302,307,401,403)
-mc Match HTTP status codes, or "all" for everything. (default: 200,204,301,302,307,401,403,405)
-ml Match amount of lines in response
-mr Match regexp
-ms Match HTTP response size

View file

@ -73,5 +73,5 @@
lines = ""
regexp = ""
size = ""
status = "200,204,301,302,307,401,403"
status = "200,204,301,302,307,401,403,405"
words = ""

View file

@ -135,7 +135,7 @@ func NewConfigOptions() *ConfigOptions {
c.Matcher.Lines = ""
c.Matcher.Regexp = ""
c.Matcher.Size = ""
c.Matcher.Status = "200,204,301,302,307,401,403"
c.Matcher.Status = "200,204,301,302,307,401,403,405"
c.Matcher.Words = ""
c.Output.DebugLog = ""
c.Output.OutputDirectory = ""