Skip to content

Commit

Permalink
Flags changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devploit committed Feb 27, 2024
1 parent b02ba0f commit ec29916
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,23 @@ Usage:
nomore403 [flags]

Flags:
-i, --bypass-ip string Try bypass tests with a specific IP address (or hostname). For example: 'X-Forwarded-For: 192.168.0.1' instead of 'X-Forwarded-For: 127.0.0.1'
-d, --delay int Set a delay (in ms) between each request (default 0ms)
-f, --folder string Define payloads folder (if its not in the same path as binary)
-H, --header strings Add a custom header to the requests (can be specified multiple times)
-i, --bypass-ip string Use a specified IP address or hostname for bypassing access controls. Injects this IP in headers like 'X-Forwarded-For'.
-d, --delay int Specify a delay between requests in milliseconds. Helps manage request rate (default: 0ms).
-f, --folder string Specify the folder location for payloads if not in the same directory as the executable.
-H, --header strings Add one or more custom headers to requests. Repeatable flag for multiple headers.
-h, --help help for nomore403
--http Set HTTP schema for request-file requests (default HTTPS)
-t, --http-method string HTTP method to use (default 'GET')
-m, --max-goroutines int Set the max number of goroutines working at same time (default 50)
--no-banner Set no-banner ON (default OFF)
-x, --proxy string Proxy URL. For example: http://127.0.0.1:8080
--random-agent Set random user-agent ON (default OFF)
-l, --rate-limit Stop making request if rate limit ban is detected: 429 HTTP code (default OFF)
-r, --redirect Set follow redirect ON (default OFF)
--request-file string Path to request file to load flags from
-u, --uri string Target URL
-a, --user-agent string Set the User-Agent string (default 'nomore403')
-v, --verbose Set verbose mode ON (default OFF)
--http Use HTTP instead of HTTPS for requests defined in the request file.
-t, --http-method string Specify the HTTP method for the request (e.g., GET, POST). Default is 'GET'.
-m, --max-goroutines int Limit the maximum number of concurrent goroutines to manage load (default: 50). (default 50)
--no-banner Disable the display of the startup banner (default: banner shown).
-x, --proxy string Specify a proxy server for requests, e.g., 'http://server:port'.
--random-agent Enable the use of a randomly selected User-Agent.
-l, --rate-limit Halt requests upon encountering a 429 (rate limit) HTTP status code.
-r, --redirect Automatically follow redirects in responses.
--request-file string Load request configuration and flags from a specified file.
-u, --uri string Specify the target URL for the request.
-a, --user-agent string pecify a custom User-Agent string for requests (default: 'nomore403').
-v, --verbose Enable verbose output for detailed request/response logging.
```
## Contributing
Expand Down
32 changes: 16 additions & 16 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)

rootCmd.PersistentFlags().StringVarP(&bypassIP, "bypass-ip", "i", "", "Try bypass tests with a specific IP address (or hostname). For example: 'X-Forwarded-For: 192.168.0.1' instead of 'X-Forwarded-For: 127.0.0.1'")
rootCmd.PersistentFlags().IntVarP(&delay, "delay", "d", 0, "Set a delay (in ms) between each request (default 0ms)")
rootCmd.PersistentFlags().StringVarP(&folder, "folder", "f", "", "Define payloads folder (if its not in the same path as binary)")
rootCmd.PersistentFlags().StringSliceVarP(&reqHeaders, "header", "H", []string{""}, "Add a custom header to the requests (can be specified multiple times)")
rootCmd.PersistentFlags().BoolVarP(&schema, "http", "", false, "Set HTTP schema for request-file requests (default HTTPS)")
rootCmd.PersistentFlags().StringVarP(&httpMethod, "http-method", "t", "", "HTTP method to use (default 'GET')")
rootCmd.PersistentFlags().IntVarP(&maxGoroutines, "max-goroutines", "m", 50, "Set the max number of goroutines working at same time")
rootCmd.PersistentFlags().BoolVarP(&nobanner, "no-banner", "", false, "Set no-banner ON (default OFF)")
rootCmd.PersistentFlags().StringVarP(&proxy, "proxy", "x", "", "Proxy URL. For example: http://127.0.0.1:8080")
rootCmd.PersistentFlags().BoolVarP(&randomAgent, "random-agent", "", false, "Set random user-agent ON (default OFF)")
rootCmd.PersistentFlags().BoolVarP(&rateLimit, "rate-limit", "l", false, "Stop making request if rate limit ban is detected: 429 HTTP code (default OFF)")
rootCmd.PersistentFlags().BoolVarP(&redirect, "redirect", "r", false, "Set follow redirect ON (default OFF)")
rootCmd.PersistentFlags().StringVarP(&requestFile, "request-file", "", "", "Path to request file to load flags from")
rootCmd.PersistentFlags().StringVarP(&uri, "uri", "u", "", "Target URL")
rootCmd.PersistentFlags().StringVarP(&userAgent, "user-agent", "a", "", "Set the User-Agent string (default 'nomore403')")
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Set verbose mode ON (default OFF)")
rootCmd.PersistentFlags().StringVarP(&bypassIP, "bypass-ip", "i", "", "Use a specified IP address or hostname for bypassing access controls. Injects this IP in headers like 'X-Forwarded-For'.")
rootCmd.PersistentFlags().IntVarP(&delay, "delay", "d", 0, "Specify a delay between requests in milliseconds. Helps manage request rate (default: 0ms).")
rootCmd.PersistentFlags().StringVarP(&folder, "folder", "f", "", "Specify the folder location for payloads if not in the same directory as the executable.")
rootCmd.PersistentFlags().StringSliceVarP(&reqHeaders, "header", "H", []string{""}, "Add one or more custom headers to requests. Repeatable flag for multiple headers.")
rootCmd.PersistentFlags().BoolVarP(&schema, "http", "", false, "Use HTTP instead of HTTPS for requests defined in the request file.")
rootCmd.PersistentFlags().StringVarP(&httpMethod, "http-method", "t", "", "Specify the HTTP method for the request (e.g., GET, POST). Default is 'GET'.")
rootCmd.PersistentFlags().IntVarP(&maxGoroutines, "max-goroutines", "m", 50, "Limit the maximum number of concurrent goroutines to manage load (default: 50).")
rootCmd.PersistentFlags().BoolVarP(&nobanner, "no-banner", "", false, "Disable the display of the startup banner (default: banner shown).")
rootCmd.PersistentFlags().StringVarP(&proxy, "proxy", "x", "", "Specify a proxy server for requests, e.g., 'http://server:port'.")
rootCmd.PersistentFlags().BoolVarP(&randomAgent, "random-agent", "", false, "Enable the use of a randomly selected User-Agent.")
rootCmd.PersistentFlags().BoolVarP(&rateLimit, "rate-limit", "l", false, "Halt requests upon encountering a 429 (rate limit) HTTP status code.")
rootCmd.PersistentFlags().BoolVarP(&redirect, "redirect", "r", false, "Automatically follow redirects in responses.")
rootCmd.PersistentFlags().StringVarP(&requestFile, "request-file", "", "", "Load request configuration and flags from a specified file.")
rootCmd.PersistentFlags().StringVarP(&uri, "uri", "u", "", "Specify the target URL for the request.")
rootCmd.PersistentFlags().StringVarP(&userAgent, "user-agent", "a", "", "pecify a custom User-Agent string for requests (default: 'nomore403').")
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose output for detailed request/response logging.")
}

// initConfig reads in config file and ENV variables if set.
Expand Down

0 comments on commit ec29916

Please sign in to comment.