-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile
More file actions
99 lines (87 loc) · 2.19 KB
/
Containerfile
File metadata and controls
99 lines (87 loc) · 2.19 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Containerfile (Podman-compatible)
FROM docker.io/kalilinux/kali-rolling:latest
LABEL maintainer="SploitGPT Contributors"
LABEL description="SploitGPT - Autonomous AI Penetration Testing Framework"
# Avoid prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install essential packages and security tools
RUN apt-get update && apt-get install -y --no-install-recommends \
# Base utilities
curl \
wget \
git \
vim \
tmux \
zsh \
net-tools \
iproute2 \
iptables \
iputils-ping \
dnsutils \
wireguard-tools \
openresolv \
# Python
python3 \
python3-pip \
python3-venv \
# Metasploit
metasploit-framework \
# Reconnaissance
nmap \
masscan \
# NOTE: rustscan package is not available in all Kali mirrors/releases.
# Install it separately if you need it (optional).
# Web testing
nikto \
gobuster \
ffuf \
dirb \
sqlmap \
wpscan \
# Password attacks
hydra \
john \
hashcat \
# Network tools
netcat-openbsd \
socat \
proxychains4 \
# SMB/Windows
smbclient \
enum4linux \
crackmapexec \
# DNS
dnsrecon \
fierce \
# Other useful tools
nuclei \
whatweb \
exploitdb \
wordlists \
seclists \
man-db \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Copy application
COPY . /app/
# Create and use a virtualenv to avoid pip attempting to uninstall distro Python packages
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv "$VIRTUAL_ENV"
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir .
# Create loot directory
RUN mkdir -p /app/loot /app/sessions /app/data
# Build a local catalog of installed tools (for fast tool_search + RAG).
# This is best-effort; the agent can still fall back to apropos/man at runtime.
RUN python -m sploitgpt.knowledge.kali_tools_ingest --db /app/data/sploitgpt.db || true
# Expose msfrpcd port
EXPOSE 55553
# Set up entrypoint
COPY container-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["sploitgpt"]