用途:Agentiko Worker 是一个运行于 Docker 内部的 Alpine Linux 容器(IP 172.20.0.2,用户 root),通过 SSH 连接,所有 shell 命令在此执行而非用户本机;扫描流量来源为 VPS IP。它与 Hermes 主机(172.20.0.3)组成双容器架构,后者在启动时读取 /opt/data/ 下的 AGENTS.md、SOUL.md 与技能,需要侦察工作时再 SSH 到 Worker。Worker 无法访问 /opt/data/ 及 Hermes CLI(hermes config 等命令在此不可用,应改用 /model、/config、/reset 等斜杠命令)。
主要能力:预装侦察工具包括 nmap 7.95、masscan 1.3.2、naabu 2.6.1、amass 5.1.1、subfinder 2.14.0、dnsx 1.2.3、httpx 1.9.0、nuclei 3.9.0、ffuf 2.1.0、katana 1.6.1;网络工具 curl、wget、dig、whois、socat、openssl;开发工具 python3 3.12、gcc/g++、make、git、perl;Python 库含 requests、httpx、aiohttp、beautifulsoup4、lxml、pyyaml、dnspython、rich、impacket;另有 tmux、jq、rsync 等。未安装 go 与 node,可用 apk add go / nodejs 安装。
使用方式:输出持久化到 /root/output/,自定义脚本与字典放 /root/tools/,命令历史记录于 /root/output/cmd.log,/tmp/ 为临时目录。长时间扫描建议用 tmux 保持会话,例如 tmux new -s scan-nmap。结果保存示例:subfinder -d target.com -o /root/output/subs.txt。可使用 cronjob 工具做周期性侦察,脚本置于 /root/scripts/,提示词需自包含(agentiko-recon 技能不存在)。包管理使用 apk add / apk search。
限制与陷阱:Tirith 安全扫描器会在工具层面阻止 write_file 写入 /root/output/ 与 /root/scripts/ 下任何类型文件,需改用终端命令,如 python3 -c "open('/root/output/file.md','w').write('''...''')",或 heredoc 与 base64 分块,超大文件优先用 base64。masscan 若报 libpcap 错误执行 apk add libpcap。Alpine 使用 BusyBox,ps 不支持 --sort、ss 不可用、grep 不支持 -P。无 systemd,后台进程用 tmux 或 nohup。终端工具拒绝以 & 后台运行,需用 execute_code 的 subprocess.Popen。委托子代理同样受 write_file 限制,返回后需核实文件是否真正写入。官方文档中部分说明为葡萄牙语,其余细节暂未提供。