Skip to content

Commit

Permalink
fix<dork>: properly process feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
vmfunc committed Oct 22, 2024
1 parent 85654f6 commit 057b997
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/scan/dork.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ func Dork(url string, timeout time.Duration, threads int, logdir string) ([]Dork
defer wg.Done()

for i, dork := range dorks {


if i%threads != thread {
continue
}
Expand Down
10 changes: 10 additions & 0 deletions sif.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ func (app *App) Run() error {
log.Warnf("Subdomain Takeover check is enabled but DNS scan is disabled. Skipping Subdomain Takeover check.")
}

if app.settings.Dorking {
result, err := scan.Dork(url, app.settings.Timeout, app.settings.Threads, app.settings.LogDir)
if err != nil {
log.Errorf("Error while running Dork module: %s", err)
} else {
moduleResults = append(moduleResults, ModuleResult{"dork", result})
scansRun = append(scansRun, "Dork")
}
}

if app.settings.Ports != "none" {
result, err := scan.Ports(app.settings.Ports, url, app.settings.Timeout, app.settings.Threads, app.settings.LogDir)
if err != nil {
Expand Down

0 comments on commit 057b997

Please sign in to comment.