Skip to content

Commit

Permalink
fix -esb flag does not store the screenshot on disk (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aituglo authored Jul 10, 2024
1 parent 7ed4cd1 commit a5c43f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,9 @@ func (r *Runner) RunEnumeration() {

resp.ScreenshotPath = screenshotPath
resp.ScreenshotPathRel = screenshotPathRel
if r.scanopts.NoScreenshotBytes {
resp.ScreenshotBytes = []byte{}
}
}

if indexFile != nil {
Expand Down Expand Up @@ -2138,9 +2141,6 @@ retry:
technologies = sliceutil.Dedupe(technologies)
}
}
if scanopts.NoScreenshotBytes {
screenshotBytes = []byte{}
}
if scanopts.NoHeadlessBody {
headlessBody = ""
}
Expand Down

0 comments on commit a5c43f6

Please sign in to comment.