def run_domain_tools(): domains=db.get_domains_from_db() if not domains: print "No domains found in DB...Nothing to run..." return for item in domains: for tool in core.tools: if tool.run_domain == True: instance = Instance() instance.build_instance_from_tool(tool) instance.target = item.domain instance.output_dir = core.output_dir instance.suppress_out = core.suppress_out instance.website_output_format = core.website_output_format if core.limit_email_domains: instance.email_domain_filter = item.domain instance.run() core.instances.append(instance) print "TLD discovery completed"
def run_domain_tools(): domains = db.get_domains_from_db() if not domains: print "No domains found in DB...Nothing to run..." return for item in domains: for tool in core.tools: if tool.run_domain == True: instance = Instance() instance.build_instance_from_tool(tool) instance.target = item.domain instance.output_dir = core.output_dir instance.suppress_out = core.suppress_out instance.website_output_format = core.website_output_format if core.limit_email_domains: instance.email_domain_filter = item.domain instance.run() core.instances.append(instance) print "TLD discovery completed"
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
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
def list_domains(): db.get_domains_from_db("",True)
def list_domains(): db.get_domains_from_db("", True)