Skip to content

Commit e789bb2

Browse files
debug nuclei result parser
1 parent 6a4369b commit e789bb2

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ TOOLS :
8181
workers: 2000
8282
nuclei:
8383
file: "nuclei"
84-
headless_browser: True
84+
headless_browser: false
8585
activate: true
8686
conf_file: null
8787

main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from tools import orc
1414
import argparse
15-
from concurrent.futures import ThreadPoolExecutor
1615

1716
logger = cl.logger
1817

manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
V3.0.2
1+
V3.0.3

tools/analyze_web_techno.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import lib.handler as handler
66
import lib.generics as gen
77
import lib.custom_logger as custom_logger
8-
import json
98

109
logger = custom_logger.logger
1110

tools/nuclei.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ def main(config: gen.configuration, res: result) -> dict:
162162
for ip in res.result:
163163
res.result[ip]["vulns"] = []
164164
for result_ in nuclei_results:
165+
if result_["host"][-1] == ".":
166+
result_["host"] = result_["host"][:-1]
165167
if (
166168
result_["host"] == str(ip.ip)
169+
or result_["matched-at"] == str(ip.ip)
167170
or result_["host"] == "https://" + str(ip.ip)
168171
or result_["host"] == "http://" + str(ip.ip)
169172
and result_ not in res.result[ip]["vulns"]
@@ -175,8 +178,11 @@ def main(config: gen.configuration, res: result) -> dict:
175178
for fqdn in res.result[ip]["fqdns"]:
176179
res.result[ip]["fqdns"][fqdn]["vulns"] = []
177180
for result_ in nuclei_results:
181+
if result_["host"][-1] == ".":
182+
result_["host"] = result_["host"][:-1]
178183
if (
179184
result_["host"] == fqdn
185+
or result_["matched-at"] == fqdn
180186
or result_["host"] == "https://" + fqdn
181187
or result_["host"] == "http://" + fqdn
182188
and result_ not in res.result[ip]["fqdns"][fqdn]["vulns"]

0 commit comments

Comments
 (0)