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()
def nexport_xml(xml, index, eshost, esport): ms = Nmap('x', 'xml/' + xml, 'y') ms.import_es(index, eshost, esport)
def nscanlst(hostfile, ports, xml, index, eshost, esport, noin): ms = Nmap(hostfile, 'xml/' + xml, ports) ms.runfile() if noin == False: ms.import_es(index, eshost, esport) print ms.output