mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-23 19:51:52 +08:00
feat: v2.1.0 核心重构与功能增强
## 架构重构
- 全局变量消除,迁移至 Config/State 对象
- SMB 插件融合(smb/smb2/smbghost/smbinfo)
- 服务探测重构,实现 Nmap 风格 fallback 机制
- 输出系统重构,TXT 实时刷盘 + 双写机制
- i18n 框架升级至 go-i18n
## 性能优化
- 正则表达式预编译
- 内存优化 map[string]struct{}
- 并发指纹匹配
- SOCKS5 连接复用
- 滑动窗口调度 + 自适应线程池
## 新功能
- Web 管理界面
- 多格式 POC 适配(xray/afrog)
- 增强指纹库(3139条)
- Favicon hash 指纹识别
- 插件选择性编译(Build Tags)
- fscan-lab 靶场环境
- 默认端口扩展(62→133)
## 构建系统
- 添加 no_local tag 支持排除本地插件
- 多版本构建:fscan/fscan-nolocal/fscan-web
- CI 添加 snapshot 模式支持仅测试构建
## Bug 修复
- 修复 120+ 个问题,包括 RDP panic、批量扫描漏报、
JSON 输出格式、Redis 检测、Context 超时等
## 测试增强
- 单元测试覆盖率 74-100%
- 并发安全测试
- 集成测试(Web/端口/服务/SSH/ICMP)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# 安装基本工具(分批安装避免超时)
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl wget vim iputils-ping net-tools && \
|
||||
apt-get install -y openssh-client ftp rsync telnet && \
|
||||
apt-get install -y redis-tools mysql-client postgresql-client && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 创建工作目录
|
||||
WORKDIR /root
|
||||
|
||||
# 复制 fscan 二进制(需要用户提前编译)
|
||||
COPY fscan /usr/local/bin/fscan
|
||||
RUN chmod +x /usr/local/bin/fscan
|
||||
|
||||
# 下载并安装 frp 客户端 (v0.65.0)
|
||||
RUN wget -q https://github.com/fatedier/frp/releases/download/v0.65.0/frp_0.65.0_linux_amd64.tar.gz && \
|
||||
tar -xzf frp_0.65.0_linux_amd64.tar.gz && \
|
||||
mv frp_0.65.0_linux_amd64/frpc /usr/local/bin/frpc && \
|
||||
chmod +x /usr/local/bin/frpc && \
|
||||
rm -rf frp_0.65.0_linux_amd64*
|
||||
|
||||
# 创建工具目录
|
||||
RUN mkdir -p /root/tools /root/loot /root/scripts /etc/frp
|
||||
|
||||
# 复制 frp 客户端配置
|
||||
COPY frpc.ini /etc/frp/frpc.ini
|
||||
|
||||
# 欢迎信息
|
||||
COPY welcome.sh /root/.bashrc
|
||||
RUN echo 'export PS1="\[\033[01;31m\]attacker\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]# "' >> /root/.bashrc
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user