使用说明
RedTeam代理
AI驱动的自主红队框架
让AI成为你的安全审计黑客
概述
RedTeam Agent是一个使用技能优先终端工作流的AI驱动的红队框架。人工智能读取项目技能,发现工具,在终端中执行命令,并总结高信号发现。
核心理念:无需手动逐个工具操作。让AI端到端地编排工作流程。
主要特点
- 即插即用:15多种工具,具有自动设置功能
- 人工智能驱动的工作流程:技能+终端执行
- 令牌优化:输出过滤和文件优先策略
- 广告覆盖范围:血猎犬+刺戳+响应链
- 多客户端支持:Cursor、Claude Desktop、VS Code/Cline
工具矩阵
网络
- gogo:快速资产发现
- fscan:全面的主机/服务扫描
网络
- httpx:HTTP探测和指纹识别
- nucleus:基于模板的漏洞验证
- ffuf:目录和参数模糊
活动目录
- 尖锐/警犬蟒蛇
- impacket(GetNPUsers、GetUserSPN、secretsdump、ntlmrelayx等)
- pywerview、ldapdomaindump
横向移动
- nxc(NetExec)
- 损坏wmiexec
- 撞击psexec
快速开始
1.要求
Python 3.8+
Windows 10/11 or Linux/macOS
8GB+ RAM recommended
2.安装
git clone https://github.com/ktol1/RedTeam-Agent.git
cd RedTeam-Agent
python -m venv venv
# Windows PowerShell
.\venv\Scripts\Activate.ps1
# Linux/macOS
source venv/bin/activate
# Windows
python scripts/install_tools.py
# Linux/macOS
python scripts/install_tools_linux.py
3.启用技能终端模式
不需要额外的服务器设置。
cd RedTeam-Agent
dir .\tools
AI将阅读存储库技能和 .github/copilot-instructions.md,然后直接执行终端命令。
4.示例提示
First load the redteam skill, then scan 192.168.1.0/24 in terminal,
write output to scan.txt, and summarize high-value findings.
Use SharpHound to collect corp.local data and summarize attack paths.
Set up a chisel proxy and provide upload/run commands.
AD攻击流程
- 推荐:戈戈/fscan/路缘石/pywerview
- 收藏:鲨鱼或猎犬蟒蛇
- 分析:BloodHound GUI或脚本/BloodHound_Analysis.py
- 攻击:Kerberoast/AS-REP烘烤/分泌泵/继电器
- 横向:nxc/wmiexec/psexec/getST
终端命令(技能驱动)
| # | 工具 | 功能 | 命令 |
|---|---|---|---|
| 1 | gogo | 快速资产调查 | gogo -t 100 -l hosts.txt -q -f gogo.txt |
| 2 | fscan | 网络扫描仪 | fscan -h 192.168.1.0/24 -np -silent -nocolor -o fscan.txt |
| 3 | httpx | 网络指纹识别 | httpx -l urls.txt -sc -title -server -td -silent -o httpx.txt |
| 4 | 细胞核 | POC扫描仪 | nuclei -l urls.txt -tags cve,rce -s high,critical -nc -o nuclei.txt |
| 5 | ffuf | 目录模糊 | ffuf -u http://target/FUZZ -w wordlist.txt -mc 200,301,302 -s -o ffuf.txt |
| 6 | nxc | 侧向运动 | nxc smb 192.168.1.0/24 -u user -p pass --shares |
| 7 | kerbrute | Kerberos枚举 | kerbrute userenum -d corp.local --dc 192.168.1.10 users.txt -o valid_users.txt |
| 8 | SharpSound | 数据收集 | SharpHound.exe -c Default -d corp.local |
| 9 | pywerview | 域枚举 | pywerview.py get-domain-user -d corp.local --dc-ip 192.168.1.10 -u user -p pass |
| 10 | ldapdomaindump | LDAP转储 | ldapdomaindump ldap://192.168.1.10 -u 'corp\\user' -p 'password' -o .\\ldapdump |
| 11 | 响应者 | LLMNR欺骗 | responder -I eth0 -v |
| 12 | wmiexec | WMI执行器 | impacket-wmiexec domain/user:pass@target 'whoami' |
| 13 | psexec | 服务执行 | impacket-psexec domain/user:pass@target cmd.exe |
| 14 | 机密转储 | 凭证转储 | impacket-secretsdump corp.local/user:pass@dc -just-dc |
| 15 | ntlmrelayx | NTLM中继 | impacket-ntlmrelayx -t ldap://dc --smb2support |
输出优化
- 删除ANSI颜色
- 压缩空白行
- 截断过量输出
- 对于大型扫描,首选文件优先输出
- 仅总结高信号发现
文档
贡献
欢迎问题和拉取请求。
麻省理工学院许可证-版权所有(c)2024-2026 kto1