Skip to content

Commit

Permalink
debug nuclei result parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ugomeguerditchian committed Jun 29, 2023
1 parent 6a4369b commit e789bb2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TOOLS :
workers: 2000
nuclei:
file: "nuclei"
headless_browser: True
headless_browser: false
activate: true
conf_file: null

Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from tools import orc
import argparse
from concurrent.futures import ThreadPoolExecutor

logger = cl.logger

Expand Down
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
V3.0.2
V3.0.3
1 change: 0 additions & 1 deletion tools/analyze_web_techno.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import lib.handler as handler
import lib.generics as gen
import lib.custom_logger as custom_logger
import json

logger = custom_logger.logger

Expand Down
6 changes: 6 additions & 0 deletions tools/nuclei.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ def main(config: gen.configuration, res: result) -> dict:
for ip in res.result:
res.result[ip]["vulns"] = []
for result_ in nuclei_results:
if result_["host"][-1] == ".":
result_["host"] = result_["host"][:-1]
if (
result_["host"] == str(ip.ip)
or result_["matched-at"] == str(ip.ip)
or result_["host"] == "https://" + str(ip.ip)
or result_["host"] == "http://" + str(ip.ip)
and result_ not in res.result[ip]["vulns"]
Expand All @@ -175,8 +178,11 @@ def main(config: gen.configuration, res: result) -> dict:
for fqdn in res.result[ip]["fqdns"]:
res.result[ip]["fqdns"][fqdn]["vulns"] = []
for result_ in nuclei_results:
if result_["host"][-1] == ".":
result_["host"] = result_["host"][:-1]
if (
result_["host"] == fqdn
or result_["matched-at"] == fqdn
or result_["host"] == "https://" + fqdn
or result_["host"] == "http://" + fqdn
and result_ not in res.result[ip]["fqdns"][fqdn]["vulns"]
Expand Down

0 comments on commit e789bb2

Please sign in to comment.