Skip to content

Commit cd7e21f

Browse files
authored
Merge pull request #330 from TBX3D/feat/per-target-accumulator
refactor(cli): drop comments restating adjacent dns/subdomain code
2 parents a7e25d5 + a350757 commit cd7e21f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sif.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,10 @@ func (app *App) scanTarget(url, storeDir string, wantReport bool) (targetScan, e
472472
log.Errorf("Error while running dns scan: %s", err)
473473
} else {
474474
moduleResults = append(moduleResults, ModuleResult{"dnslist", result})
475-
dnsResults = result // Store the DNS results
475+
dnsResults = result
476476
scansRun = append(scansRun, "DNS Scan")
477477
}
478478

479-
// Only run subdomain takeover check if DNS scan is enabled
480479
if app.settings.SubdomainTakeover {
481480
result, err := scan.SubdomainTakeover(url, dnsResults, app.settings.Timeout, app.settings.Threads, app.settings.LogDir)
482481
if err != nil {

0 commit comments

Comments
 (0)