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
Copy file name to clipboardExpand all lines: pkg/shortscan/shortscan.go
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,9 @@ var statusCache map[string]map[int]struct{}
136
136
vardistanceCachemap[string]map[int]distances
137
137
varchecksumRegex*regexp.Regexp
138
138
139
+
// Delay between requests set by the rate limit.
140
+
varrequestDelay time.Duration
141
+
139
142
// Command-line arguments and help
140
143
typeargumentsstruct {
141
144
Urls []string`arg:"positional,required" help:"url to scan (multiple URLs can be provided; a file containing URLs can be specified with an «at» prefix, for example: @urls.txt)" placeholder:"URL"`
@@ -148,6 +151,7 @@ type arguments struct {
148
151
FullUrlbool`arg:"-F" help:"display the full URL for confirmed files rather than just the filename" default:"false"`
149
152
NoRecursebool`arg:"-n" help:"don't detect and recurse into subdirectories (disabled when autocomplete is disabled)" default:"false"`
150
153
Stabilisebool`arg:"-s" help:"attempt to get coherent autocomplete results from an unstable server (generates more requests)" default:"false"`
154
+
Ratefloat32`arg:"-r" help:"maximum requests per second, supports floating point values" default:"0.0"`
151
155
Patienceint`arg:"-p" help:"patience level when determining vulnerability (0 = patient; 1 = very patient)" placeholder:"LEVEL" default:"0"`
152
156
Charactersstring`arg:"-C" help:"filename characters to enumerate" default:"JFKGOTMYVHSPCANDXLRWEBQUIZ8549176320-_()&'!#$%@^{}~"`
0 commit comments