Skip to main content

Tool for auditing Mikrotik routers, searching for vulnerabilities and information about the target device.

Project description

MKX - MikroTik Exploit

Build Static Badge GitHub Release GitHub License Visitors

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 host option.

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

mkx-0.1.2.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkx-0.1.2-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

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

Hashes for mkx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f70686fae878b1c424ce64843d5a75247238255d20225be7631cbb4e98e5a0f0
MD5 c26967e16600a253ff676fbb990fe044
BLAKE2b-256 475713ab68e4963ae8f9373c8e7deced942c9bc1f4f037634f6a5fede70750ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkx-0.1.2.tar.gz:

Publisher: build.yml on henriquesebastiao/mkx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mkx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b365aa4860950859dacaf908e23af277404096d0f95206e4ab639b99423afd86
MD5 f5efaa4cbf7cce5e622380f0947b4588
BLAKE2b-256 59ad6299be518dfff993c719ec4179e277fdec640aa162681f4ef1027a2feed3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkx-0.1.2-py3-none-any.whl:

Publisher: build.yml on henriquesebastiao/mkx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page