예제 #1
0
def nscan(host, ports, xml, raw_words, num_threads, agent):
    ms = Nmap(host, '/var/log/scantastic/' + xml, ports)
    ms.run()
    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)
예제 #2
0
def nscan(host, ports, xml, index, eshost, esport, noin):
    ms = Nmap(host, 'xml/' + xml, ports)
    ms.run()
    if noin == False:
        ms.import_es(index, eshost, esport)
        print ms.output
예제 #3
0
def nscan(host, ports, xml, index, eshost, esport, noin):
    ms = Nmap(host, 'xml/' + xml, ports)
    ms.run()
    if noin == False:
        ms.import_es(index, eshost, esport)
        print ms.output