500 Internal Server Error -> default matched status codes (#510)

* match 500 status code responses by default

* include 500 into default match codes

* match 500: update help message

* Update CHANGELOG.md
This commit is contained in:
Alexandre ZANNI 2022-01-22 17:58:07 +01:00 committed by GitHub
parent b440d6dd49
commit 3cc6557fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@
- Added response time logging and filtering
- Added a CLI flag to specify TLS SNI value
- Added full line colors
- Added 500 Internal Server Error to list of status codes matched by default
- Changed
- Fixed an issue where output file was created regardless of `-or`
- Fixed an issue where output (often a lot of it) would be printed after entering interactive mode

View File

@ -195,7 +195,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,405)
-mc Match HTTP status codes, or "all" for everything. (default: 200,204,301,302,307,401,403,405,500)
-ml Match amount of lines in response
-mr Match regexp
-ms Match HTTP response size

View File

@ -76,6 +76,6 @@
lines = ""
regexp = ""
size = ""
status = "200,204,301,302,307,401,403,405"
status = "200,204,301,302,307,401,403,405,500"
time = ""
words = ""

View File

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