Skip to content

Commit

Permalink
remove -k flag support, convert to dummy flag (#134)
Browse files Browse the repository at this point in the history
* remove -k flag support, convert to dummy flag

* update changelog and contributors
  • Loading branch information
Shaked authored and joohoi committed Jan 7, 2020
1 parent b4adeae commit 1b45085
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,8 @@
- Limit the use of `-e` (extensions) to a single keyword: FUZZ
- Regexp matching and filtering (-mr/-fr) allow using keywords in patterns
- Take 429 responses into account when -sa (stop on all error cases) is used
- Remove -k flag support, convert to dummy flag #134


- v0.12
- New
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Expand Up @@ -14,3 +14,4 @@
* [SakiiR](https://github.com/SakiiR)
* [seblw](https://github.com/seblw)
* [SolomonSklash](https://github.com/SolomonSklash)
* [Shaked](https://github.com/Shaked)
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -65,7 +65,7 @@ func main() {
flag.Var(&opts.headers, "H", "Header `\"Name: Value\"`, separated by colon. Multiple -H flags are accepted.")
flag.StringVar(&conf.Url, "u", "", "Target URL")
flag.Var(&opts.wordlists, "w", "Wordlist file path and (optional) custom fuzz keyword, using colon as delimiter. Use file path '-' to read from standard input. Can be supplied multiple times. Format: '/path/to/wordlist:KEYWORD'")
flag.BoolVar(&conf.TLSVerify, "k", false, "TLS identity verification")
flag.BoolVar(&ignored, "k", false, "Dummy flag for backwards compatibility")
flag.StringVar(&opts.delay, "p", "", "Seconds of `delay` between requests, or a range of random delay. For example \"0.1\" or \"0.1-2.0\"")
flag.StringVar(&opts.filterStatus, "fc", "", "Filter HTTP status codes from response. Comma separated list of codes and ranges")
flag.StringVar(&opts.filterSize, "fs", "", "Filter HTTP response size. Comma separated list of sizes and ranges")
Expand Down
2 changes: 0 additions & 2 deletions pkg/ffuf/config.go
Expand Up @@ -21,7 +21,6 @@ type Config struct {
DirSearchCompat bool
Method string
Url string
TLSVerify bool
Data string
Quiet bool
Colors bool
Expand Down Expand Up @@ -65,7 +64,6 @@ func NewConfig(ctx context.Context) Config {
conf.Headers = make(map[string]string)
conf.Method = "GET"
conf.Url = ""
conf.TLSVerify = false
conf.Data = ""
conf.Quiet = false
conf.StopOn403 = false
Expand Down
2 changes: 1 addition & 1 deletion pkg/runner/simple.go
Expand Up @@ -34,7 +34,7 @@ func NewSimpleRunner(conf *ffuf.Config) ffuf.RunnerProvider {
MaxIdleConnsPerHost: 500,
MaxConnsPerHost: 500,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: !conf.TLSVerify,
InsecureSkipVerify: true,
},
}}

Expand Down

0 comments on commit 1b45085

Please sign in to comment.