Skip to content

Commit 7c8e878

Browse files
committed
Adding dockerfile and pip requirements files
1 parent 618f912 commit 7c8e878

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM python:2.7-slim
2+
3+
# Prevent packages like wireshark from prompting
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
RUN apt-get update && apt-get install -y --no-install-recommends \
6+
arp-scan \
7+
ettercap-text-only \
8+
nmap \
9+
wireshark \
10+
&& rm -rf /var/lib/apt/lists/
11+
12+
ADD requirements.txt /requirements.txt
13+
RUN pip install --no-cache-dir -r /requirements.txt
14+
RUN echo 'noenum = [ Resolve(), TCP_SERVICES, UDP_SERVICES ]' >> $HOME/.scapy_startup.py
15+
16+
ADD passer.py /passer.py
17+
18+
ENTRYPOINT ["python", "/passer.py"]
19+
20+
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
21+
LABEL org.opencontainers.image.title="passer"
22+
LABEL org.opencontainers.image.description="PASsive SERvice sniffer"
23+
LABEL org.opencontainers.image.url="https://github.com/activecm/passer"
24+
LABEL org.opencontainers.image.documentation="https://github.com/activecm/passer/blob/master/passer.txt"
25+
26+
# docker build -t passer .
27+
# docker run --rm -it --name=passer --net=host passer

passer.txt

+10
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ pypcap (a modified version for scapy), libdnet, and pyreadline.
7777
it as "C:\WINDOWS\passer".
7878

7979

80+
======== Docker ========
81+
82+
You may also use passer within docker. You can build the passer image like this:
83+
docker build -t passer .
84+
85+
And then you can run it like this:
86+
docker run --rm -it --name=passer --net=host passer
87+
88+
In order to kill passer you can run:
89+
docker stop passer
8090

8191

8292
======== Examples ========

requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ipaddress
2+
pytz
3+
scapy>=2.4.0

0 commit comments

Comments
 (0)