You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--request-file string Load request configuration and flags from a specified file.
135
135
-k, --technique strings Specify one or more attack techniques to use (e.g., headers,path-case). (default [verbs,verbs-case,headers,endpaths,midpaths,http-versions,path-case])
136
136
--timeout int Specify a max timeout timein ms (default 6000)
137
+
--status strings Filter output by comma-separated status codes (e.g., 200,301,403)
138
+
--unique Show unique output based on status code and response length
137
139
-u, --uri string Specify the target URL for the request.
138
140
-a, --user-agent string pecify a custom User-Agent string for requests (default: 'nomore403').
139
141
-v, --verbose Enable verbose output for detailed request/response logging.
Copy file name to clipboardExpand all lines: cmd/root.go
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,11 @@ var (
31
31
uristring
32
32
userAgentstring
33
33
verbosebool
34
+
statusCodes []string// New flag for filtering status codes
35
+
uniqueOutputbool// New flag for unique output
34
36
)
35
37
36
-
// rootCmd
38
+
// rootCmd represents the base command when called without any subcommands
37
39
varrootCmd=&cobra.Command{
38
40
Use: "nomore403",
39
41
Short: "Tool to bypass 40X response codes.",
@@ -99,8 +101,12 @@ func init() {
99
101
rootCmd.PersistentFlags().StringSliceVarP(&technique, "technique", "k", []string{"verbs", "verbs-case", "headers", "endpaths", "midpaths", "http-versions", "path-case"}, "Specify one or more attack techniques to use (e.g., headers,path-case).")
100
102
rootCmd.PersistentFlags().IntVarP(&timeout, "timeout", "", 6000, "Specify a max timeout time in ms.")
101
103
rootCmd.PersistentFlags().StringVarP(&uri, "uri", "u", "", "Specify the target URL for the request.")
102
-
rootCmd.PersistentFlags().StringVarP(&userAgent, "user-agent", "a", "", "pecify a custom User-Agent string for requests (default: 'nomore403').")
104
+
rootCmd.PersistentFlags().StringVarP(&userAgent, "user-agent", "a", "", "Specify a custom User-Agent string for requests (default: 'nomore403').")
0 commit comments