mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-05 10:34:31 +01:00
- docker-compose.yml: PostgreSQL 16, neurosploit app, kali-worker - Dockerfile: multi-stage Rust build + Node runtime - Dockerfile.kali: kalilinux/kali-rolling with full pentest toolbox - install.sh: auto-generate credentials, build images, start services - db/schema.sql: PostgreSQL schema for runs, findings, auth Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
67 lines
2.2 KiB
Docker
67 lines
2.2 KiB
Docker
# NeuroSploit — Kali worker image
|
|
# Isolated per-task container with the full pentest toolbox.
|
|
# Runs as unprivileged user, read-only rootfs, no-new-privileges.
|
|
|
|
FROM kalilinux/kali-rolling
|
|
|
|
RUN set -eux; \
|
|
apt-get update; \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
# Core networking
|
|
curl wget netcat-openbsd dnsutils iputils-ping iproute2 socat nmap masscan \
|
|
# Web scanning
|
|
nikto whatweb wapiti dirb gobuster feroxbuster \
|
|
# Fuzzing
|
|
ffuf wfuzz \
|
|
# SQL injection
|
|
sqlmap \
|
|
# Exploitation frameworks
|
|
metasploit-framework exploitdb \
|
|
# Password cracking
|
|
john hashcat hydra medusa \
|
|
# Recon & OSINT
|
|
whois fierce dnsenum dnsrecon amass subfinder \
|
|
# Web proxying
|
|
proxychains4 \
|
|
# Binary analysis
|
|
binwalk radare2 \
|
|
# Scripting
|
|
python3 python3-pip python3-venv ruby perl \
|
|
# SSL/TLS
|
|
sslscan sslyze testssl.sh \
|
|
# SMB/Windows
|
|
smbclient enum4linux crackmapexec \
|
|
# Active Directory
|
|
bloodhound impacket-scripts \
|
|
# Utils
|
|
jq git vim-tiny tmux procps bash-completion ca-certificates \
|
|
# Nuclei (from GitHub releases if not in repo)
|
|
; \
|
|
# Install Go-based tools via go install
|
|
apt-get install -y --no-install-recommends golang-go 2>/dev/null || true; \
|
|
# Cleanup
|
|
apt-get clean; \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
|
|
# Create unprivileged user
|
|
groupadd -g 10001 pentest; \
|
|
useradd -u 10001 -g 10001 -d /home/pentest -m -s /bin/bash pentest; \
|
|
mkdir -p /workspace /home/pentest/.local; \
|
|
chown -R 10001:10001 /workspace /home/pentest; \
|
|
# Remove setuid bits
|
|
find / -xdev -perm /6000 -type f -exec chmod a-s {} + 2>/dev/null || true
|
|
|
|
# Install nuclei & httpx (ProjectDiscovery tools)
|
|
RUN pip3 install --break-system-packages pipx 2>/dev/null || true; \
|
|
# Try installing from kali repos first, fallback to direct download
|
|
apt-get update && apt-get install -y --no-install-recommends nuclei 2>/dev/null; \
|
|
rm -rf /var/lib/apt/lists/* || true
|
|
|
|
USER 10001:10001
|
|
WORKDIR /workspace
|
|
ENV HOME=/home/pentest \
|
|
LANG=C.UTF-8 \
|
|
TERM=xterm-256color \
|
|
PATH="/home/pentest/.local/bin:$PATH"
|
|
|
|
CMD ["sleep", "infinity"]
|