We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf7fdf2 commit 92ea7fcCopy full SHA for 92ea7fc
pkg/scan/url_scanner.go
@@ -305,7 +305,12 @@ func (scanner *URLScanner) checkURL(job URLJob) *URLResult {
305
306
if !job.BasicOnly && !strings.Contains(job.URL, "/.htpasswd") && !strings.Contains(job.URL, "/.htaccess") {
307
for _, ext := range scanner.backupExtensions {
308
- scanner.queue(URLJob{URL: job.URL + ext, BasicOnly: true})
+ bUrl := job.URL + ext
309
+ if strings.Contains(job.URL, "?") {
310
+ bits := strings.SplitN(job.URL, "?", 2)
311
+ bUrl = strings.Join(bits, ext+"?")
312
+ }
313
+ scanner.queue(URLJob{URL: bUrl, BasicOnly: true})
314
}
315
316
0 commit comments