Saataa andagii !

This commit is contained in:
Lukian 2024-12-02 11:37:48 +01:00
parent babfe360b6
commit 77339d0c7c
5 changed files with 8 additions and 11 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.venv/

View file

@ -1,22 +1,17 @@
services:
proxy-server:
build:
context: ./proxy
dockerfile: Dockerfile
network: host
image: proxy-server
image: proxy-server:latest
container_name: proxy-server
networks:
- server
ports:
- "8080:80"
web-server:
image: nginx:latest
container_name: web-server
networks:
- server
ports:
- "80:80"
networks:
server:

View file

@ -1,6 +1,6 @@
FROM python:slim
FROM python:alpine
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
EXPOSE 80
CMD ["python", "main.py"]
CMD python main.py

View file

@ -1,4 +1,5 @@
from scapy.all import *
from scapy.layers.http import *
from scapy.layers.ntlm import *
class Custom_HTTP_Server(HTTP_Server):
def answer(self, pkt):