Esempio n. 1
0
        poisonThread = threading.Thread(target=arp.poison)
        print(colors.WHITE + '[*] Spoofing DNS responses...' + colors.DEFAULT)
        dnsThread = threading.Thread(target=dns.spoof)

        poisonThread.daemon = True
        dnsThread.daemon = True

    except KeyboardInterrupt:
        print("\r")
        print(colors.RED + "\n[!] Quitting.." + colors.DEFAULT)
        sys.exit(0)

    poisonThread.start()
    dnsThread.start()

    while True:
        try:
            pass
        except KeyboardInterrupt:
            print("\r")
            print(colors.RED + "[*] Quitting.." + colors.DEFAULT)
            arp.re_arp()
            time.sleep(2)
            print(colors.WHITE + "[*] Restoring iptables.." + colors.DEFAULT)
            dns.restore_iptables()
            time.sleep(2)
            print(colors.YELLOW +
                  "\nGoodbye horses..  I'm flying over you.. ♥" +
                  colors.DEFAULT)
            sys.exit(0)