Esempio n. 1
0
def run_host_tools():
    db_hosts = db.get_hosts_from_db()
    db_hostnames = db.get_hostnames_from_db()
    
    for tool in core.tools:
        if tool.run_ip == True:
            for item in db_hosts:
                instance = Instance()
                instance.build_instance_from_tool(tool)
                
                instance.target = item.ip
                instance.output_dir = core.output_dir
                instance.suppress_out = core.suppress_out
                instance.website_output_format = core.website_output_format
                
                instance.run()
                core.instances.append(instance)
                
        if tool.run_dns == True:
            for item in db_hostnames:
                instance = Instance()
                instance.build_instance_from_tool(tool)
                
                instance.target = item.hostname
                instance.output_dir = core.output_dir
                instance.suppress_out = core.suppress_out
                instance.website_output_format = core.website_output_format
                
                instance.run()
                core.instances.append(instance)
    
    print "\n" + "-"*80 + "\n"
Esempio n. 2
0
def run_host_tools():
    db_hosts = db.get_hosts_from_db()
    db_hostnames = db.get_hostnames_from_db()

    for tool in core.tools:
        if tool.run_ip == True:
            for item in db_hosts:
                instance = Instance()
                instance.build_instance_from_tool(tool)

                instance.target = item.ip
                instance.output_dir = core.output_dir
                instance.suppress_out = core.suppress_out
                instance.website_output_format = core.website_output_format

                instance.run()
                core.instances.append(instance)

        if tool.run_dns == True:
            for item in db_hostnames:
                instance = Instance()
                instance.build_instance_from_tool(tool)

                instance.target = item.hostname
                instance.output_dir = core.output_dir
                instance.suppress_out = core.suppress_out
                instance.website_output_format = core.website_output_format

                instance.run()
                core.instances.append(instance)
Esempio n. 3
0
def banner():
    '''returns menu banner text as string'''
    
    db_domains = db.get_domains_from_db('',False,True)
    db_hosts = db.get_hosts_from_db('',False,True)
    
    banner_text = "pasv-agrsv reconnaisance utility - https://github.com/isaudits/pasv-agrsv/\n\n"
    banner_text += "Project name: "
    banner_text += core.projectname
    banner_text += "\n"
    banner_text += "Active DB path: "
    banner_text += core.dbfilename
    banner_text += "\n"
    
    banner_text += "Domain(s): "
    if not db_domains:
        banner_text += "None identified (add some before testing)"
    else:
        for item in db_domains:
            banner_text += item.domain + ","
    banner_text += "\n"
    
    banner_text += "Targets: "
    if not db_hosts:
        banner_text += "None - run a scan!"
    else:
        banner_text += str(len(db_hosts))
    banner_text += "\n"
    
    return banner_text
Esempio n. 4
0
def banner():
    '''returns menu banner text as string'''

    db_domains = db.get_domains_from_db('', False, True)
    db_hosts = db.get_hosts_from_db('', False, True)

    banner_text = "pasv-agrsv reconnaisance utility - https://github.com/isaudits/pasv-agrsv/\n\n"
    banner_text += "Project name: "
    banner_text += core.projectname
    banner_text += "\n"
    banner_text += "Active DB path: "
    banner_text += core.dbfilename
    banner_text += "\n"

    banner_text += "Domain(s): "
    if not db_domains:
        banner_text += "None identified (add some before testing)"
    else:
        for item in db_domains:
            banner_text += item.domain + ","
    banner_text += "\n"

    banner_text += "Targets: "
    if not db_hosts:
        banner_text += "None - run a scan!"
    else:
        banner_text += str(len(db_hosts))
    banner_text += "\n"

    return banner_text
Esempio n. 5
0
def list_targets():
    db.get_hosts_from_db("",False)
    db.get_hostnames_from_db("",True)
Esempio n. 6
0
def list_targets():
    db.get_hosts_from_db("", False)
    db.get_hostnames_from_db("", True)