Example #1
0
def gather_info(name, url):
    print("Scanning " + url + '\n')

    print("Getting Domain Name...")
    domain_name = get_domain_name(url)
    print("Done\n")

    print("Getting the IP Address...")
    ip_address = get_ip_address(domain_name)
    print("Done\n")

    print("Running Nmap Scan...")
    nmap = get_nmap('-F', ip_address)
    print("Done\n")

    print("Fetching robots.txt...")
    robots_txt = get_robots_txt(url)
    print("Done\n")

    print("Extracting whois details...")
    whois = get_whois(domain_name)
    print("Done\n")

    # Create Final Report in a file
    create_report(name, url, domain_name, nmap, robots_txt, whois)
    print("Information for " + name + " saved in Websites/" + name +
          " Folder\n")
def gather_info(name, url):
    print("Scanning " + url + '\n')

    print("Getting Domain Name...")
    domain_name = get_domain_name(url)
    print("Done\n")

    print("Getting the IP Address...")
    ip_address = get_ip_address(domain_name)
    print("Done\n")

    print("Running Nmap Scan...")
    nmap = get_nmap('-F', ip_address)
    print("Done\n")

    print("Fetching robots.txt...")
    robots_txt = get_robots_txt(url)
    print("Done\n")

    print("Extracting whois details...")
    whois = get_whois(domain_name)
    print("Done\n")

    # Create Final Report in a file
    create_report(name, url, domain_name, nmap, robots_txt, whois)
    print("Information for " + name + " saved in Websites/" + name + " Folder\n")
Example #3
0
def gather_information(name, url):
    domain = get_domain(url)
    ipaddress = get_address(domain)
    nmap = get_nmap(domain, '-F')
    robots = get_robots(url)
    whois = get_whois(domain)
    create_report(name, url, domain, ipaddress, nmap, robots, whois)
Example #4
0
def run_site_scan(url, port_range):

    # Get an ip-address of a given domain.
    ip = ipAddress.get_ip_address(url)

    nmap_scan_results = nMap.run_nmap(ip, port_range)
    robots_txt_file = robots_txt.get_robots_txt(url)
    whois_info = whois.get_whois(url)

    save_results(nmap_scan_results, robots_txt_file, whois_info, url)
Example #5
0
def gather_info(name, url):

    domain_name = get_domain_name(url)
    ip_address = get_ip_address(domain_name)
    nmap = get_nmap('-F', ip_address)
    robots_txt = get_robots_txt(url)
    whois = get_whois(domain_name)
    print("Done\n")

    create_report(name, nmap, robots_txt, whois)
    print("Information for " + name + " saved in Websites/" + name +
          " Folder\n")
Example #6
0
def gather_info(url, name=None):
    domain_name = get_domain_name(url)

    replace_chars = ['.', '-']
    if not name:
        name = domain_name
        for ch in replace_chars:
            name = name.replace(ch, '_')

    ip_address = get_ip_address(domain_name)
    nmap = get_nmap('-F', ip_address)
    robots_txt = get_robots_txt(url)
    whois = get_whois(domain_name)

    save_report(name, url, domain_name, ip_address, nmap, robots_txt, whois)