ffuff/pkg/ffuf
M. Ángel Jimeno c6a6293499
pkg/ffuf: fix panic in Windows when parsing wordlist flag (#335)
This change addresses two panics that happened while parsing the provided
wordlist flag in Windows systems.

- pkg/ffuf/util.go:40: panic happened when the provided path was
invalid. Example: ".\wordlist.txt:" as the os.Stat call returned an
error different than os.ErrNotExist.

- pkg/ffuf/optionsparser.go:179: panic happened when the provided value
did not existed and did not contain a colon character. Example:
".\asdf.txt" when the local file ".\asdf.txt" did not exist. This panic
happened due to strings.LastIndex returning -1 when the provided
substring does not appear. Therefore, v[:-1] panicking.

Fixes #333

Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
2020-10-26 23:43:09 +02:00
..
config.go Add support for configuration files for ffuf (#308) 2020-09-27 19:24:06 +03:00
const.go Prepare 1.2.0-git (#268) 2020-07-23 13:49:27 +03:00
interfaces.go Add linter workflow as GitHub action (#325) 2020-10-03 11:29:18 +03:00
job.go Add linter workflow as GitHub action (#325) 2020-10-03 11:29:18 +03:00
multierror.go Get rid of the last external dependency 2018-11-15 00:18:43 +02:00
optionsparser.go pkg/ffuf: fix panic in Windows when parsing wordlist flag (#335) 2020-10-26 23:43:09 +02:00
optrange.go Write configuration to output JSON (#135) 2020-01-07 18:27:43 +02:00
progress.go Throttle rate of requests per second (#287) 2020-08-30 13:51:41 +03:00
rate.go Throttle rate of requests per second (#287) 2020-08-30 13:51:41 +03:00
request.go Add Host information to JSON output file (#223) 2020-04-23 00:53:28 +03:00
response.go Fix crash with 3xx requests without location header (#265) 2020-07-23 13:13:27 +03:00
util.go pkg/ffuf: fix panic in Windows when parsing wordlist flag (#335) 2020-10-26 23:43:09 +02:00
valuerange.go Add linter workflow as GitHub action (#325) 2020-10-03 11:29:18 +03:00