ffuf/pkg
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
..
ffuf pkg/ffuf: fix panic in Windows when parsing wordlist flag (#335) 2020-10-26 23:43:09 +02:00
filter Add linter workflow as GitHub action (#325) 2020-10-03 11:29:18 +03:00
input pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
output issue/274 * made links in HTML report clickable (#323) 2020-10-05 11:05:02 +03:00
runner pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00