Ejemplo n.º 1
0
def main():
    """"
    Main function of AWIScan when running from command line.
    """

    banner()

    # Set paths of project.
    CONF.ROOT_PATH = os.getcwd()
    setPaths()

    # received command >> parse_args
    base_targets, level = parse_args()
    initOptions(level)

    run(base_targets)
    logger.info("[AWIScan] All target is end")
Ejemplo n.º 2
0
    client.connect((ip, 80))
    client.sendall(data)
    response = client.recv(2048)
    if '200 OK' and domain in response:
        print("   " + good + "The real IP is: %s" % ip)
        exit(1)
    if '301' and domain in response:
        print("   " + info + "The Real IP is: %s" % ip)
        exit(1)
    else:
        print("   " + bad + "%s is not the IP" % ip)


if __name__ == "__main__":
    try:
        args, sys_r = parse_args(), Resolver()
        domain = args.domain
        if args.subdomain == True:
            logotype()
            subdomain_tracking(domain)
            ns = put_file()
        elif args.ns != None:
            ns = args.ns
            logotype()
        else:
            logotype()
            print("Usage: python " + sys.argv[0] +
                  " [Options] use -h for help")
            print(bad + "too few arguments")
            exit(0)
Ejemplo n.º 3
0
						print (que + 'Testing if source body is the same in both websites')
						print ('   ' + good + ' HTML content is %d%% structurally similar to: %s' % (round(100 *page_similarity, 2), org_response.url))
			except Exception:
				print("   " + bad +"Connection Timeout")
			netcat(domain, ns, count=+1)
			return org_response
		except requests.exceptions.SSLError:
			print("   " + bad +'Error handshaking with SSL')
		except requests.exceptions.ReadTimeout:
			print("   " + bad +"Connection Timeout")
		except requests.ConnectTimeout:
			print("   " + bad +"Connection Timeout")

if __name__=="__main__":
	try:
		args = parse_args()
		domain, file, brute = args.domain,args.file, args.bruter
		if args.subdomain == True and args.ns == None:
			ip_takes = make_list()
			if brute == True:
				nameservers = nameserver(domain)
				ip_takes.extend(nameservers)
			list_length = len(ip_takes)
			for i in range(0, list_length):
				ns = ip_takes[i]
				scan(domain, ns)
				netcat(domain, ns, count=0)
				A = DNSLookup(domain, ns)
				IPscan(domain)
		elif args.ns != None and args.subdomain == False:
			if brute == True: