diff --git a/conspiracy.py b/conspiracy.py index db52cdc..3921b58 100644 --- a/conspiracy.py +++ b/conspiracy.py @@ -19,6 +19,7 @@ import argparse import asyncio import logging +import nmap import os import socket import time @@ -90,6 +91,9 @@ def get_aliases_native(domain): except Exception: return None +def nmap_async_callback(host, scan_result): + logging.info(scan_result) + async def get_browser(): return await launch(headless=True,args=['--proxy-server=' + BURP_SUITE_PROXY]) @@ -201,6 +205,10 @@ async def run_processing_on_hitlist(): logging.info('End module: sslyze certificate information <' + inscope_url + '>') # END MODULE: sslyze # START MODULE: nmap - # TODO + nma = nmap.PortScannerAsync() + # TODO actually test the below + verify arguments via zenmap run + nma.scan(hosts=inscope_url, arguments='-sP', callback=nmap_async_callback) + while nma.still_scanning(): + nma.wait(5) # END MODULE: nmap logging.info('End of execution, shutting down...')