Skip to content

Commit a68da18

Browse files
committed
refactor: adjust scan parameters, update Nuclei noise filtering, and modify JSON output schema for no-findings results
1 parent a349799 commit a68da18

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

internal/modules/gobot/scan_results_api.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,6 @@ func isNoiseFinding(finding, target string) bool {
881881
// Nuclei summary file lines
882882
noisePrefixes := []string{
883883
"Nuclei Scan Summary",
884-
"No vulnerabilities found",
885-
"No findings found",
886884
"Target:",
887885
"Mode:",
888886
"Found ",

internal/modules/utils/json_output.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ func WriteLinesAsJSON(scanID, target, scanType, fileName string, lines []string)
145145
func WriteNoFindingsJSON(scanID, target, scanType, fileName string) error {
146146
payload := []map[string]interface{}{
147147
{
148-
"target": target,
149-
"finding": "No vulnerabilities found",
148+
"target": nil,
149+
"finding": "No findings found",
150150
"severity": "info",
151151
"type": scanType,
152152
},

internal/modules/zerodays/zerodays.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,9 +943,10 @@ func discoverMongoDBHosts(liveHostsFile string, mongoPort int, threads int, sile
943943

944944
options := &naaburunner.Options{
945945
Host: goflags.StringSlice(hosts),
946+
Ports: fmt.Sprintf("%d", mongoPort),
946947
ScanType: "c", // connect scan
947-
Rate: threads * 100,
948-
Timeout: 5,
948+
Rate: threads * 10,
949+
Timeout: 2,
949950
Retries: 1,
950951
OnResult: onResult,
951952
}

0 commit comments

Comments
 (0)