MAC Telnet from a Linux PC

So you want to MAC Telnet into a Mikrotik Router from a Linux PC.

Here is how:

  • On your Debian / Ubuntu / Rasbian PC run sudo apt-get install mactelnet-client to install a client on the PC.
  • Then run mactelnet -l to search for Mikrotik routers on your LAN. After some time you should get a list like this:
Searching for MikroTik routers... Abort with CTRL+C.

IP              MAC-Address       Identity (platform version hardware) uptime
192.168.0.2     a1:9e:ca:3s:12:12  bath-rb2011 (MikroTik 6.43.4 (stable) RB2011UiAS-2HnD)  up 24 days 6 hours  E7HG-YHZW LAN
192.168.88.1    a2:a2:4e:11:21:20 MikroTik (MikroTik 6.43.7 (stable) CCR1016-12G)  up 0 days 0 hours  HBYX-CA72 ether1
  • Might take a bit to list all your routers. Press Ctrl + C to stop searching.
  • You can then telnet to a particular router by runnig: mactelnet a2:a2:4e:11:21:20. Replace the MAC address with yours of course:
Login: spin
Password:
Connecting to a2:a2:4e:11:21:20...done








  MMM      MMM       KKK                          TTTTTTTTTTT      KKK
  MMMM    MMMM       KKK                          TTTTTTTTTTT      KKK
  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK
  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK
  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK
  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK

  MikroTik RouterOS 6.43.7 (c) 1999-2018       http://www.mikrotik.com/

[?]             Gives the list of available commands
command [?]     Gives help on the command and list of arguments

[Tab]           Completes the command/word. If the input is ambiguous,
                a second [Tab] gives possible options

/               Move up to base level
..              Move up one level
/command        Use command at the base level

[spin@MikroTik] >
8 Likes

Nice howto!

The code can be easily used as a factory delivered router provisioning tool - just need to wrap into a script where the mac address is inputed or better yet detected on the connect segment…

1 Like

Nice spin does work the same on kali parrot

I don’t have either on hand but Parrot and Kali are also Debian so it should probably work if they have the client in their repositories.