shell
Skill48 starsChanged 3 months agoMITView on GitHub
Shell and session operations after an attack module already established command execution, a raw shell, webshell channel, container/runner shell, or remote session. This module does not own exploitation and should not pull SSH/WinRM/RDP authentication or vulnerability-to-shell chains out of Web/AD/Cloud/K8s/CI-CD/Service/Phishing. Use it to bootstrap a usable callback from existing command execution, stabilize Linux PTY, upgrade Windows sessions with ConPTY where applicable, manage listeners, recover fragile sessions, and exchange files for continued operations.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- posidoni/shell-skilltheir own version, first seen Jul 19, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Jul 14, 2026
- last9/mithaitheir own version, first seen Jun 25, 2026
- Cogni-AI-OU/cogni-ai-agent-skillstheir own version, first seen May 19, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- nimadorostkar/Claude-Skills-collection★ 28same name
- last9/mithai★ 18same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- JameMy0001/antigravity-skills-hub★ 1same name
- leishifu666/skills★ 1same name
- PandelisZ/skills★ 1same name
- posidoni/shell-skill★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ad-attackSkill
- ad-reconSkill
- cicdSkill
- cloud-attackSkill
- cloud-reconSkill
- credsSkill
- edr-bypassSkill
- k8sSkill
- phishingSkill
- postSkill
- privesc-linuxSkill
- privesc-winSkill
- reconSkill
- service-attackSkill
- tunnelSkill
- web-attackSkill
- web-reconSkill
The file
Files
/shell — Shell & Session Operations
新定位: 不负责“把漏洞变成 shell”。Attack 模块已经负责把自己选择的链做到 foothold。
/shell只处理已有 execution/shell/session 的质量与可操作性。
开局与收尾
开局第一件事:Read ./notes.md。没有则 python ~/.claude/skills/bin/notes.py init。只按已拿下/凭据继续。
走到哪条链,才 Read 一份 references/<file>.md。禁止开局全读、禁止凭记忆写 payload。
监听 / sudo / 输密码 / Permission denied:立刻停,说明等操作者做什么,等回报。不要假装已成功。
收尾:
- 追加
./notes.md python ~/.claude/skills/bin/modules.py tail <本模块名>Read 备用:~/.claude/skills/shared/modules.yaml禁止./modules.yaml和python ../bin/...- 优先
default_next;never_default不得当作默认(操作者点名除外) - 名册外的名字不许建议
- 停。等操作者选
/模块或/clear/edr-bypass半条链未完:打通后回本模块,不要 /clear。
0. 输入条件
至少满足一个:
single-command execution
raw reverse shell
bind shell
webshell command channel
container/runner shell
poor cmd/PowerShell channel
existing interactive remote session如果你只有一个 Web/AD/Service/Cloud/K8s/CI-CD 漏洞候选,还没有执行能力,回原 Attack 模块继续,不要用 /shell 代替 exploit chain。
1. Session bootstrap
当原 Attack 模块已经证明 single-command execution,但当前 operator 明确选择 /shell 来改善会话时,可以从现有 execution primitive 建立 callback。
这不改变攻击链所有权:最终 foothold 仍属于原模块。
见 references/session-bootstrap.md。
2. Linux PTY
目标:
raw /bin/sh
→ PTY
→ Ctrl-C / job control
→ correct TERM/rows/cols
→ stable interactive shell见 references/linux-pty.md。
3. Windows ConPTY / Session Upgrade
目标:把 poor cmd/PowerShell/stdin-stdout channel 变成可正常交互的 Windows session。优先使用系统自带 Pseudo Console 能力;ConPtyShell 是常见实现之一,但不是唯一答案。
见 references/windows-conpty.md。
4. Listener & Recovery
处理:
listener discipline
socket reconnect
TTY state corruption
Ctrl-C breakage
stale session
resume after network interruption见 references/listeners-recovery.md。
5. File Exchange
用于foothold 日常工具/文件交换:
HTTP
SMB
SCP/SFTP when already available
base64/chunking
native PowerShell/curl/certutil alternatives where appropriate不负责“大规模数据外带”,那属于 /post。
见 references/file-transfer.md。
6. 明确不属于 /shell
SQLi→xp_cmdshell→shell → /web-attack
MSSQL direct exploit→shell → /service-attack
PTH/PsExec/WinRM lateral shell → /ad-attack
Cloud IAM→SSM/VM RunCommand shell → /cloud-attack
K8s exec/container/node shell → /k8s
Runner workflow→runner shell → /cicd
ClickFix/client execution→shell → /phishing
AV/EDR blocks payload → /edr-bypass
network pivot → /tunnel7. 成功条件
Linux:
[+] PTY usable
[+] Ctrl-C/job control works
[+] TERM + rows/cols correct
Windows:
[+] stable cmd/PowerShell/ConPTY
[+] stdin/stdout/stderr usable
[+] long-running commands do not kill session
Generic:
[+] reliable file exchange
[+] session survives normal operator interaction完成后
写入 ./notes.md。候选只按「开局与收尾」跑 python ~/.claude/skills/bin/modules.py tail。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

