diff --git a/docker/Dockerfile b/docker/Dockerfile index 76f1cc0..b11c738 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,7 +7,7 @@ USER root RUN apk update -RUN apk add python-scapy python-requests +RUN apk add scapy #RUN apt-get update -qq && apt-get install -qq -y python-scapy tcpdump tcpreplay wireshark python-requests RUN rm -rf /var/cache/apk/* diff --git a/docker/dash-listen.py b/docker/dash-listen.py index 6bd9cc8..b305c1a 100644 --- a/docker/dash-listen.py +++ b/docker/dash-listen.py @@ -5,16 +5,17 @@ from scapy.all import * import os -import requests +#import requests DASH_MAC_ADDRESS=os.environ.get('DASH_MAC_ADDRESS') -URL_CALLBACK=os.environ.get('URL_CALLBACK') +#URL_CALLBACK=os.environ.get('URL_CALLBACK') def arp_display(pkt): if pkt[ARP].op == 1: #who-has (request) if pkt[ARP].psrc == '0.0.0.0': # ARP Probe if pkt[ARP].hwsrc == DASH_MAC_ADDRESS: - requests.get(URL_CALLBACK) + #requests.get(URL_CALLBACK) + print "ARP from " + pkt[ARP].hwsrc else: print "ARP Probe from unknown device: " + pkt[ARP].hwsrc