MCPcopy
hub / github.com/eldraco/domain_analyzer / main

Function main

domain_analyzer.py:2572–2781  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2570
2571
2572def main():
2573 try:
2574 global debug
2575 global check_common_hosts_names
2576 global use_common_list
2577 global common_list_path
2578 global nmap_scantype
2579 global zone_transfer
2580 global net_block
2581 global output_file
2582 global nmap
2583 global output_directory
2584 global not_store_nmap
2585 global zenmap
2586 global subdomains_found
2587 global not_goog_mail
2588 global not_subdomains
2589 global create_pdf
2590 global robin_hood
2591 global webcrawl
2592 global max_amount_to_crawl
2593 global world_domination
2594 global countrys
2595 global colors
2596 global check_spf
2597 global amount_of_random_domains
2598 global ignore_host_pattern
2599 global robtex_domains
2600 global domains_still_to_analyze
2601 global download_files
2602 global all_robtex
2603 global zenmap_command
2604
2605 domain=""
2606
2607 e=""
2608
2609 opts, args = getopt.getopt(sys.argv[1:], "abBcCd:DefFghijk:lL:m:nopqrstVv:wx:z", ["help","version","debug","domain=","not-common-hosts-names","not-zone-transfer","not-net-block","store-output","i","not-scan-or-active","resolve-zone","not-store-nmap","zenmap","goog-mail","not-subdomains","create-pdf","robin-hood","not-webcrawl","max-amount-to-crawl=","world-domination","not-countrys","not-colors","not-spf","random-domains=","ignore-host-pattern=","nmap-scantype=","robtex-domains","download-files","all-robtex","common-hosts-list="])
2610
2611 except getopt.GetoptError: usage()
2612
2613
2614 for opt, arg in opts:
2615 if opt in ("-h", "--help"): version(); usage()
2616 if opt in ("-V", "--version"): version();exit(1)
2617 if opt in ("-D", "--debug"): debug=1
2618 if opt in ("-i", "--i"): e=True
2619 if opt in ("-d", "--domain"): domain=arg
2620 if opt in ("-L", "--common-hosts-list"): common_list_path = arg; use_common_list = True
2621 if opt in ("-j", "--not-common-hosts-names"): check_common_hosts_names=False
2622 if opt in ("-t", "--zone-transfer"): zone_transfer=False
2623 if opt in ("-n", "--not-net-block"): net_block=False
2624 if opt in ("-o", "--store-output"): output_directory=True
2625 if opt in ("-a", "--not-scan-or-active"): nmap=0
2626 if opt in ("-p", "--not-store-nmap"): not_store_nmap=1
2627 if opt in ("-e", "--zenmap"): zenmap=1
2628 if opt in ("-g", "--goog-mail"): not_goog_mail=False
2629 if opt in ("-s", "--not-subdomains"): not_subdomains=True

Callers 1

domain_analyzer.pyFile · 0.70

Calls 10

analyze_domainFunction · 0.85
world_domination_checkFunction · 0.85
ttFunction · 0.85
formatMethod · 0.80
usageFunction · 0.70
versionFunction · 0.70
lookupMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected