merged the client and the server into one docker compose file
This commit is contained in:
parent
155b6b5791
commit
b4d1d60a3e
5 changed files with 32 additions and 12 deletions
|
@ -1,5 +1,9 @@
|
|||
FROM python:alphine
|
||||
FROM python:alpine
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN apk add \
|
||||
gcc \
|
||||
libpcap-dev \
|
||||
&& pip install -r requirements.txt
|
||||
CMD ["python3","app.py"]
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from scapy.all import *
|
||||
|
||||
for i in range(512,2048):
|
||||
pkt = IP(dst='locahost') / IP(src='192.168.1.69')/ TCP(dport=80,sport=i,flags='S') / ICMP()
|
||||
sr(pkt)
|
||||
pkt = IP(dst='web') / IP(src='192.168.1.69')/ TCP(dport=80,sport=i,flags='S') / ICMP()
|
||||
send(pkt, loop=1)
|
||||
|
||||
|
|
1
client/requirements.txt
Normal file
1
client/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
scapy==2.6.1
|
Loading…
Add table
Add a link
Reference in a new issue