How digiprosec/microtrick works
MikroTrick is a single-file Python lab client that turns a RouterOS SSH connection into an unauthenticated administrator console, then either runs a supplied command or plants a test account. The main flow validates the target, performs the authentication/rekey/channel/policy-mask exploit, and uses the resulting console. Interactive terminal relay is an alternate mode implemented in the same file. The README and source excerpt support these relationships; the repository has no separate runtime modules.
Main entry points: poc_mikrotrick.py CLI Orchestrator
Components 8
Invocation
- CLI Orchestrator
poc_mikrotrick.py - Target Check
poc_mikrotrick.py
SSH Exploit
- Exploit Flow
poc_mikrotrick.py
Console Actions
- Command Runner
poc_mikrotrick.py - Terminal Relay
poc_mikrotrick.py - Test Account Setup
poc_mikrotrick.py
Other components
- Operator
- RouterOS SSH
Connections 12
- Operator → CLI Orchestrator: invokes
poc_mikrotrick.py - CLI Orchestrator → Target Check: validates target
poc_mikrotrick.py - CLI Orchestrator → Exploit Flow: starts exploit
poc_mikrotrick.py - Exploit Flow → RouterOS SSH: exploits over SSH
poc_mikrotrick.py - Exploit Flow → CLI Orchestrator: returns channel
poc_mikrotrick.py - CLI Orchestrator → Command Runner: runs command
poc_mikrotrick.py - CLI Orchestrator → Test Account Setup: plants account
poc_mikrotrick.py - Test Account Setup → Command Runner: uses runner
poc_mikrotrick.py - CLI Orchestrator → Terminal Relay: relays terminal
poc_mikrotrick.py - Command Runner → RouterOS SSH: sends commands
poc_mikrotrick.py - RouterOS SSH → Command Runner: returns output
poc_mikrotrick.py - Terminal Relay → RouterOS SSH: relays channel data
poc_mikrotrick.py