def nscanlst(hostfile, ports, xml, raw_words, num_threads, agent): ms = Nmap(hostfile, '/var/log/scantastic/' + xml, ports) ms.runfile() ms.import_db() logging.info("Starting to parse XML file...") x = Xml2urls2(xml) x.run() logging.info("Parsing should be completed...") logging.info("Starting dirbuster...") start_dirbuster(raw_words, num_threads, agent) logging.info("Dirbuster done..Exiting") exit(0)
def nexport_xml(xml): ms = Nmap('x', 'xml/' + xml, 'y') ms.import_db()