Saataa andagii !
This commit is contained in:
parent
a38d84d8fe
commit
282ad8f32e
4 changed files with 11 additions and 13 deletions
|
@ -5,5 +5,5 @@ RUN apk add \
|
||||||
gcc \
|
gcc \
|
||||||
libpcap-dev \
|
libpcap-dev \
|
||||||
&& pip install -r requirements.txt
|
&& pip install -r requirements.txt
|
||||||
CMD ["python3","app.py"]
|
CMD ["python", "-u", "main.py"]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
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)
|
|
||||||
|
|
8
client/main.py
Normal file
8
client/main.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
from scapy.all import *
|
||||||
|
|
||||||
|
while True:
|
||||||
|
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)
|
||||||
|
print("Sent packet")
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build:
|
build: server
|
||||||
context: server
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: web
|
container_name: web
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
|
@ -10,9 +8,7 @@ services:
|
||||||
- network
|
- network
|
||||||
|
|
||||||
client:
|
client:
|
||||||
build:
|
build: client
|
||||||
context: client
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: client
|
container_name: client
|
||||||
networks:
|
networks:
|
||||||
- network
|
- network
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue