Tool for auditing Mikrotik routers, searching for vulnerabilities and information about the target device.
Project description
MKX - MikroTik Exploit
MKX is a tool for auditing MikroTik routers, searching for vulnerabilities and information about the target device.
To find vulnerabilities in MikroTik devices on the network, MKX can scan target devices using protocols such as MNDP and SNMP, seeking information about the hardware and RouterOS of the devices. The information obtained here can be of great value to anyone analyzing network security. For example, you can find out the firmware version of the device, and then search for any CVEs for this specific version. But below you will see that MKX already implements attacks from some known CVEs.
[!WARNING] This vulnerability analysis script is provided "as is" and is intended solely for educational, research, and testing purposes in controlled environments with proper authorization. Before running this script, please ensure that you have the necessary permission to perform security testing on the target devices. The responsibility for using this script lies entirely with the user. The author is not responsible for any damages, losses, or legal consequences arising from improper or unauthorized use of this code.
Features
Obtaining Information
- Discovery of MikroTik devices on the local network through the MikroTik Neighbor Discovery (MNDP) protocol that runs on UDP port 5678.
- Obtaining information from a specific MikroTik device or all devices in an IP range using the SNMP protocol.
Attacks
- PoC of CVE-2018-14847 that allows obtaining user credentials in vulnerable versions of RouterOS.
- DDoS attack by sending packets to all ports randomly or to a specific port.
- Attack that crashes the web interface of RouterOS versions 6 > 6.49.10 - CVE-2023-30800.
Running
You can install MKX with your preferred Python package manager, here we will use pipx:
pipx install mkx
If you don't want to install the tool on your machine, you can run a docker container with MKX already pre-installed:
docker run -it --name mkx ghcr.io/henriquesebastiao/mkx:latest
[!NOTE] When using the docker version, if you want to run features that listen to devices on your local network, run the container with the
--network hostoption.
Now you can run MKX and start learning how to use it. Get a list of possible commands with:
mkx --help
# Or even the explanation of a specific command
# mkx [COMMAND] --help
For detailed information on how to use the tool, see the Wiki.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkx-0.1.2.tar.gz.
File metadata
- Download URL: mkx-0.1.2.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f70686fae878b1c424ce64843d5a75247238255d20225be7631cbb4e98e5a0f0
|
|
| MD5 |
c26967e16600a253ff676fbb990fe044
|
|
| BLAKE2b-256 |
475713ab68e4963ae8f9373c8e7deced942c9bc1f4f037634f6a5fede70750ae
|
Provenance
The following attestation bundles were made for mkx-0.1.2.tar.gz:
Publisher:
build.yml on henriquesebastiao/mkx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkx-0.1.2.tar.gz -
Subject digest:
f70686fae878b1c424ce64843d5a75247238255d20225be7631cbb4e98e5a0f0 - Sigstore transparency entry: 737916810
- Sigstore integration time:
-
Permalink:
henriquesebastiao/mkx@8f0c7b9f5a39572a245c3966ab6babf9a0544c39 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/henriquesebastiao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@8f0c7b9f5a39572a245c3966ab6babf9a0544c39 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkx-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mkx-0.1.2-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b365aa4860950859dacaf908e23af277404096d0f95206e4ab639b99423afd86
|
|
| MD5 |
f5efaa4cbf7cce5e622380f0947b4588
|
|
| BLAKE2b-256 |
59ad6299be518dfff993c719ec4179e277fdec640aa162681f4ef1027a2feed3
|
Provenance
The following attestation bundles were made for mkx-0.1.2-py3-none-any.whl:
Publisher:
build.yml on henriquesebastiao/mkx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkx-0.1.2-py3-none-any.whl -
Subject digest:
b365aa4860950859dacaf908e23af277404096d0f95206e4ab639b99423afd86 - Sigstore transparency entry: 737916812
- Sigstore integration time:
-
Permalink:
henriquesebastiao/mkx@8f0c7b9f5a39572a245c3966ab6babf9a0544c39 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/henriquesebastiao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@8f0c7b9f5a39572a245c3966ab6babf9a0544c39 -
Trigger Event:
push
-
Statement type: