Skip to content

Commit

Permalink
Default to match 2XX (#723)
Browse files Browse the repository at this point in the history
* Change the status matcher defaults to accept any 2XX response code

* Add changelog entry
  • Loading branch information
joohoi committed Sep 15, 2023
1 parent e3e4e62 commit 36124a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@
- Fixed divide by 0 error when setting rate limit to 0 manually.
- Automatic brotli and deflate decompression
- Report if request times out when a time based matcher or filter is active
- All 2XX status codes are now matched

- v2.0.0
- New
Expand Down
3 changes: 1 addition & 2 deletions pkg/ffuf/optionsparser.go
Expand Up @@ -170,7 +170,7 @@ func NewConfigOptions() *ConfigOptions {
c.Matcher.Lines = ""
c.Matcher.Regexp = ""
c.Matcher.Size = ""
c.Matcher.Status = "200,204,301,302,307,401,403,405,500"
c.Matcher.Status = "200-299,301,302,307,401,403,405,500"
c.Matcher.Time = ""
c.Matcher.Words = ""
c.Output.DebugLog = ""
Expand Down Expand Up @@ -373,7 +373,6 @@ func ConfigFromOptions(parseOpts *ConfigOptions, ctx context.Context, cancel con
conf.ClientKey = parseOpts.HTTP.ClientKey
}


//Prepare headers and make canonical
for _, v := range parseOpts.HTTP.Headers {
hs := strings.SplitN(v, ":", 2)
Expand Down

0 comments on commit 36124a1

Please sign in to comment.