Skip to content

Commit bd4dc82

Browse files
committed
fix var declaration
1 parent 63130de commit bd4dc82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runner/runner.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,12 @@ func (r *Runner) RunEnumeration() {
11121112
URL, _ := urlutil.Parse(resp.URL)
11131113
domainFile := resp.Method + ":" + URL.EscapedString()
11141114
hash := hashes.Sha1([]byte(domainFile))
1115+
domainResponseFile := fmt.Sprintf("%s.txt", hash)
11151116
screenshotResponseFile := fmt.Sprintf("%s.png", hash)
11161117
hostFilename := strings.ReplaceAll(URL.Host, ":", "_")
1118+
domainResponseBaseDir := filepath.Join(r.options.StoreResponseDir, "response")
11171119
domainScreenshotBaseDir := filepath.Join(r.options.StoreResponseDir, "screenshot")
1120+
responseBaseDir := filepath.Join(domainResponseBaseDir, hostFilename)
11181121
screenshotBaseDir := filepath.Join(domainScreenshotBaseDir, hostFilename)
11191122

11201123
var responsePath, screenshotPath, screenshotPathRel string

0 commit comments

Comments
 (0)