From 5b969e09fb4154a51ebddc61bd2113c5092092f2 Mon Sep 17 00:00:00 2001 From: byt3bl33d3r Date: Wed, 10 Jun 2015 19:42:23 +0200 Subject: [PATCH] added error handling into ARPWatch, removed a useless (i think) lib from requirements.txt --- core/poisoners/arp/ARPWatch.py | 5 +++-- requirements.txt | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/poisoners/arp/ARPWatch.py b/core/poisoners/arp/ARPWatch.py index 0c45ef6..10470e5 100644 --- a/core/poisoners/arp/ARPWatch.py +++ b/core/poisoners/arp/ARPWatch.py @@ -82,6 +82,7 @@ class ARPWatch: try: if packet is not None: send(packet, verbose=self.debug, iface=self.interface) - except Exception, e: - mitmf_logger.error("[ARPWatch] Error sending re-poison packet: {}".format(e)) + except Exception as e: + if "Interrupted system call" not in e: + mitmf_logger.error("[ARPWatch] Exception occurred while sending re-poison packet: {}".format(e)) pass diff --git a/requirements.txt b/requirements.txt index 5c50c81..8c65b16 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ requests netaddr scapy msgpack-python -dnspython dnslib configobj Pillow