File size: 1,034 Bytes
33b7766
 
37f9172
33b7766
 
 
 
 
 
 
37f9172
 
 
33b7766
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM kalilinux/kali-rolling

# Install Python and dependencies
RUN apt-get update && apt-get install -y \
    python3 \
    python3-pip \
    python3-flask \
    python3-requests \
    && rm -rf /var/lib/apt/lists/*

# Install MCP SDK
RUN pip3 install --break-system-packages mcp requests

# Install essential Kali tools
RUN apt-get update && apt-get install -y \
    nmap \
    gobuster \
    dirb \
    nikto \
    sqlmap \
    metasploit-framework \
    hydra \
    john \
    wpscan \
    aircrack-ng \
    binwalk \
    hashcat \
    masscan \
    radare2 \
    sherlock \
    wireshark \
    commix \
    cewl \
    crunch \
    exploitdb \
    steghide \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy application files
COPY . .

# Expose ports
EXPOSE 5000 8000

# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
    CMD python3 -c "import requests; requests.get('http://localhost:5000/health')" || exit 1

# Start the server
CMD ["python3", "server.py"]