diff --git a/main.go b/main.go index c83c682..8e093a4 100644 --- a/main.go +++ b/main.go @@ -62,17 +62,17 @@ func main() { flag.StringVar(&globalState.Cfg.Methods, "methods", "GET", "Methods to use for checks. Multiple methods can be specified, comma separate them. Requests will be sent with an empty body (unless body is specified)") //Test Written flag.StringVar(&globalState.Cfg.ProxyAddr, "proxy", "", "Proxy configuration options in the form ip:port eg: 127.0.0.1:9050. Note! If you want this to work with burp/use it with a HTTP proxy, specify as http://ip:port") //todo: write test flag.Float64Var(&globalState.Cfg.Ratio404, "ratio", 0.95, "Similarity ratio to the 404 canary page.") //todo: write test - flag.BoolVar(&globalstate.Cfg.NoRobots, "norobots", false, "Don't query and add robots.txt values to checks") - flag.BoolVar(&globalState.Cfg.FollowRedirects, "redirect", false, "Follow redirects") //todo: write test - flag.BoolVar(&globalState.Cfg.BurpMode, "sitemap", false, "Send 'good' requests to the configured proxy. Requires the proxy flag to be set. ***NOTE: with this option, the proxy is ONLY used for good requests - all other requests go out as normal!***") //todo: write test - flag.IntVar(&globalState.Cfg.Threads, "t", 1, "Number of concurrent threads") //todo: write test - flag.IntVar(&globalState.Cfg.Timeout, "timeout", 20, "Timeout (seconds) for HTTP/TCP connections") //todo: write test - flag.StringVar(&globalState.Cfg.URL, "u", "", "Url to spider") //todo: write test - flag.StringVar(&globalState.Cfg.Agent, "ua", "RecurseBuster/"+version, "User agent to use when sending requests.") //todo: write test - flag.IntVar(&globalState.Cfg.VerboseLevel, "v", 0, "Verbosity level for output messages.") //todo: write test - flag.BoolVar(&globalState.Cfg.ShowVersion, "version", false, "Show version number and exit") //todo: write test - flag.StringVar(&globalState.Cfg.Wordlist, "w", "", "Wordlist to use for bruteforce. Blank for spider only") //todo: write test - flag.StringVar(&globalState.Cfg.WhitelistLocation, "whitelist", "", "Whitelist of domains to include in brute-force") //todo: write test + flag.BoolVar(&globalState.Cfg.NoRobots, "norobots", false, "Don't query and add robots.txt values to checks") + flag.BoolVar(&globalState.Cfg.FollowRedirects, "redirect", false, "Follow redirects") //todo: write test + flag.BoolVar(&globalState.Cfg.BurpMode, "sitemap", false, "Send 'good' requests to the configured proxy. Requires the proxy flag to be set. ***NOTE: with this option, the proxy is ONLY used for good requests - all other requests go out as normal!***") //todo: write test + flag.IntVar(&globalState.Cfg.Threads, "t", 1, "Number of concurrent threads") //todo: write test + flag.IntVar(&globalState.Cfg.Timeout, "timeout", 20, "Timeout (seconds) for HTTP/TCP connections") //todo: write test + flag.StringVar(&globalState.Cfg.URL, "u", "", "Url to spider") //todo: write test + flag.StringVar(&globalState.Cfg.Agent, "ua", "RecurseBuster/"+version, "User agent to use when sending requests.") //todo: write test + flag.IntVar(&globalState.Cfg.VerboseLevel, "v", 0, "Verbosity level for output messages.") //todo: write test + flag.BoolVar(&globalState.Cfg.ShowVersion, "version", false, "Show version number and exit") //todo: write test + flag.StringVar(&globalState.Cfg.Wordlist, "w", "", "Wordlist to use for bruteforce. Blank for spider only") //todo: write test + flag.StringVar(&globalState.Cfg.WhitelistLocation, "whitelist", "", "Whitelist of domains to include in brute-force") //todo: write test flag.Parse()