Exemplo n.º 1
0
        except KeyboardInterrupt:
            spoof.stop()
            print "[*] User requested shutdown."
            sys.exit(1)
    elif args.arpspoof and args.dnsspoof:
        try:
            myip = get_myip(interface)
            mymac = get_mymac(interface)
            from modules.arpoisoner import ARPspoof
            spoof = ARPspoof(gateway, targets, interface, arpmode, myip, mymac)
            spoof.start()
            filter = "http"
            from modules.dnspoisoner import DNSspoof
            dnsspoof = DNSspoof(domain, redirect)
            dnsspoof.main()
            from modules.sniffer import Sniffer
            sniff = Sniffer(interface, "http")
            sniff.start()
        except KeyboardInterrupt:
            dnsspoof.stop()
            print "[*] User requested shutdown."
            sys.exit(1)

    elif args.arpspoof:
        try:
            myip = get_myip(interface)
            mymac = get_mymac(interface)
            print "[*] Use --sniff to sniff intercepted packets, poisoning in threading."
            from modules.arpoisoner import ARPspoof
            spoof = ARPspoof(gateway, targets, interface, arpmode, myip, mymac)
Exemplo n.º 2
0
		except KeyboardInterrupt:
			spoof.stop()
			print "[*] User requested shutdown."
			sys.exit(1)
	elif args.arpspoof and args.dnsspoof:
		try:
                        myip = get_myip(interface)
			mymac = get_mymac(interface)
			from modules.arpoisoner import ARPspoof
			spoof = ARPspoof(gateway, targets, interface, arpmode, myip, mymac)
			spoof.start()
			filter = "http"
			from modules.dnspoisoner import DNSspoof
			dnsspoof = DNSspoof(domain,redirect)
			dnsspoof.main()
			from modules.sniffer import Sniffer
			sniff = Sniffer(interface, "http")
			sniff.start()
		except KeyboardInterrupt:
			dnsspoof.stop()
			print "[*] User requested shutdown."
			sys.exit(1)

	elif args.arpspoof:
		try:
                        myip = get_myip(interface)
                        mymac = get_mymac(interface)
			print "[*] Use --sniff to sniff intercepted packets, poisoning in threading."
			from modules.arpoisoner import ARPspoof
			spoof = ARPspoof(gateway,targets,interface,arpmode, myip, mymac)