https://github.com/elceef/mactelnet
Open source client for connecting to Mikrotik routers via MAC address
https://github.com/elceef/mactelnet
Last synced: about 1 year ago
JSON representation
Open source client for connecting to Mikrotik routers via MAC address
- Host: GitHub
- URL: https://github.com/elceef/mactelnet
- Owner: elceef
- Created: 2014-10-14T18:29:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T06:27:02.000Z (over 3 years ago)
- Last Synced: 2025-04-08T12:02:11.804Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 109 KB
- Stars: 22
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Required libraries
-------------------------------------------------------------------------------
MAC-Telnet requires libpcap and libnet. Installation in Ubuntu GNU/Linux or
any other Debian-based distribution is quite simple:
$ sudo apt-get install build-essential libpcap-dev libnet1 libnet1-dev
Under FreeBSD you will need to compile these libraries from ports:
# cd /usr/ports/net/libnet-devel
# make install
# cd /usr/ports/net/libnet
# make install
Or install some packages with pkg_add ;-)
Compilation
-------------------------------------------------------------------------------
Also easy. Standard libc required. Just type:
$ make clean && make
Discovering
-------------------------------------------------------------------------------
Run mactelnet with device name as an argument. It might take up several seconds
to find all available hardware:
# mactelnet eth0
Discovering Mikrotik routers... (CTRL+C to abort)
00:0d:b9:12:d3:4c 2n_2c2_1_1 4.3 MikroTik up~263days21h x86 0.0.0.0
00:0d:b9:12:d3:4c 2n_2c2_1_1 4.3 MikroTik up~263days21h x86 0.0.0.0
Connecting
-------------------------------------------------------------------------------
Two arguments are required - device name and hardware MAC of previously
discovered remote Mikrotik router.
# mactelnet eth0 00:0d:b9:12:d3:4c
Connecting to 00:0d:b9:12:d3:4c ...
Username: admin
Password:
MikroTik RouterOS 2.9.27 (c) 1999-2006 http://www.mikrotik.com/
Terminal linux detected, using multiline input mode
[admin@MikroTik] >
Questions?
-------------------------------------------------------------------------------
Don't hesitate to ask some questions. Feel free to write to elceef at itsec.pl