Skip to content

Commit

Permalink
better nuclei update management and debug commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ugomeguerditchian committed Apr 3, 2023
1 parent ab6e642 commit 33ea979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion libs/ip_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ def nuclei_scan(hosts: list, domain: str, vulnconf: str) -> dict:
)

# run nuclei and save the results in a json file
# countdown to 5 seconds
logger.info("Starting nuclei scan in 5 seconds")
for i in range(5, 0, -1):
logger.info(f"{i}...")
time.sleep(1)
actual_time = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
if vulnconf != "":
logger.info("Running nuclei with config file")
Expand All @@ -308,7 +313,7 @@ def nuclei_scan(hosts: list, domain: str, vulnconf: str) -> dict:
)
else:
os.system(
f"nuclei -l nuclei/{domain}/hosts.txt -json -rl 500 -c 200 -bs 200 -hbs 200 -headc 200 -o nuclei/{domain}/results_{actual_time}.json"
f"nuclei -l nuclei/{domain}/hosts.txt -rl 500 -c 200 -bs 200 -hbs 200 -headc 200 -jsonl -o nuclei/{domain}/results_{actual_time}.json"
)
# read the output
with open(f"nuclei/{domain}/results_{actual_time}.json", "r") as f:
Expand Down
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
V2.2.3
V2.2.3.01

0 comments on commit 33ea979

Please sign in to comment.