-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
51 lines (40 loc) · 1.43 KB
/
Dockerfile
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
FROM kalilinux/kali-rolling
RUN apt-get update && \
apt-get upgrade -y && \
apt-get dist-upgrade -y
# ----------------------------------------------------------------------------------------
# 全工具安装需 20G 硬盘
# RUN apt-get install kali-linux-everything
# 常用工具安装
RUN apt-get install -y \
vim procps net-tools telnet netcat tcpdump ftp dos2unix \
# 渗透框架
metasploit-framework \
# 漏洞利用数据库
exploitdb \
# 密码爆破
hydra \
# 安全列表(常用账密清单等)
seclists \
# 网络嗅探
nmap \
# WIFI 扫描
aircrack-ng \
# 合规扫描
lynis \
# WordPress 扫描
wpscan \
# Web 应用扫描
skipfish
# Linux 本地提权检查工具
RUN git clone -b master --single-branch https://github.com/rebootuser/LinEnum /usr/share/LinEnum
# ----------------------------------------------------------------------------------------
# 更新 exploitdb 数据库(建议每周跑一次)
# RUN searchsploit -u
# 用于初始化 msf 数据库的脚本(因 docker 内无法执行 systemctl 命令,此 msfdb 脚本被改造过)
# msfdb 初始化成功后会生成配置 /usr/share/metasploit-framework/config/database.yml
# 注: /usr/bin/msfdb 是 /usr/share/metasploit-framework/msfdb 的软链
ADD ./msfdb /usr/share/metasploit-framework/msfdb
RUN chmod a+x /usr/share/metasploit-framework/msfdb
WORKDIR /
CMD ["/bin/bash"]