Page 1 of 1

Mac-telnet for linux

Posted: Sun Dec 20, 2009 12:14 pm
by Mark66
Hello

Is there anyone of you that know a console mac-telnet tool for linux users?

Is really stupid that Mikrotik make a fully functionality winbox only for windows and not for linux :-/////

I am wrong or Mikrotik firmware is based on linux kernel?

Unbelievable ..... I feel a real paradox!

Re: Mac-telnet for linux

Posted: Sun Dec 20, 2009 4:31 pm
by roadracer96
Wine

Re: Mac-telnet for linux

Posted: Tue Dec 22, 2009 9:37 am
by normis
based on linux kernel doesn't mean that all the programs are from somewhere else. most of the stuff is made by mikrotik entirely, and we can't release it for linux for many reasons, including technical.

Re: Mac-telnet for linux

Posted: Wed Dec 23, 2009 3:32 am
by butche
I know that I would personally LOVE to see a console command that offered mac-telnet from Linux. I have been a strong "defender" of Mikrotik with respect to offering "native" applications in other places, but this particular request isn't one that is easily worked around. I have asked support for this for a long time, too. So let me just say +1 vote for console mac-telnet client for Linux.

Re: Mac-telnet for linux

Posted: Wed Dec 23, 2009 2:42 pm
by LatinSuD
I did some work time ago, basically the authentication part only.
Not useful yet.

Re: Mac-telnet for linux

Posted: Thu Jan 21, 2010 2:06 am
by Omniflux
I did some work time ago, basically the authentication part only.
Does this mean you know how to encode the password for the client to send to the server?

I can parse and generate everything else required to establish a session and send keystrokes / display output, but I do not know the algorithm to use to encode the password.

It looks like the server sends a random 16 byte key for each session that is to be used when encoding the password.

--
Omni Flux

Re: Mac-telnet for linux

Posted: Fri Jan 22, 2010 6:33 pm
by Chupaka
maybe it's similar to API authentication? =)

Re: Mac-telnet for linux

Posted: Sat Jan 23, 2010 4:05 am
by Omniflux
It is exactly the same. I was just missing the leading null character in the string I was calculating the md5 value for.

Thanks, Chupaka.

Re: Mac-telnet for linux

Posted: Thu Feb 04, 2010 4:10 pm
by Eising
Does this mean you have a working implementation? Could you share that?

Re: Mac-telnet for linux

Posted: Wed Mar 17, 2010 12:07 am
by chickenlittle
wow great news.. could you provide some information about the initial handshake?? i have problems with that :-/
i see that the first two bytes of each packet are some kind of sequence counter, then follows the mac of the source, then dest mac, and then?? 03 7d 00 15 and at the response packet 00 15 03 7d.. is there any scheme behind this??

it would be very kind if you share your informations :-)

Re: Mac-telnet for linux

Posted: Wed Mar 17, 2010 6:34 am
by Omniflux
I do not have a working implementation; I have only hacked enough together to test what I thought I was seeing in my packet captures and haven't had time to work on it since.

I have posted a write up of what I have found here: http://www.omniflux.com/devel/

--
Omni Flux

Re: Mac-telnet for linux

Posted: Wed Mar 17, 2010 9:27 am
by chickenlittle
wow, thank you very much, that should be helpful!

Re: Mac-telnet for linux

Posted: Wed Oct 27, 2010 10:42 am
by haakon
With help from Omni Flux' work, I've created a Linux native MAC-Telnet client.
Also a native OS X version is in beta stage.

You may find it in the download section at http://github.com/haakonnessjoen/MAC-Telnet

--
Håkon

Re: Mac-telnet for linux

Posted: Wed Oct 27, 2010 10:53 am
by janisk
to make things easier:
use git to get the source
mkdir haakon-mac-telnet && cd haakon-mac-telnet
git clone git://github.com/haakonnessjoen/MAC-Telnet.git
make all
it connects to router, gets the banner, almost gets the prompt and then disconnects.

Good work.

Re: Mac-telnet for linux

Posted: Wed Oct 27, 2010 11:17 am
by haakon
to make things easier:
use git to get the source
mkdir haakon-mac-telnet && cd haakon-mac-telnet
git clone git://github.com/haakonnessjoen/MAC-Telnet.git
make all
it connects to router, gets the banner, almost gets the prompt and then disconnects.

Good work.
Thanks. Only almost gets the prompt? Really? I have never had any issues with that.
I've been using it to Telnet my routers for a while now, with no problems. Could you send me a pcap from when this happens?

Re: Mac-telnet for linux

Posted: Wed Oct 27, 2010 11:53 am
by Muqatil
Nice porting, i tested it and works fine!
New ideas incoming!! 8)
Thank you for the app
(installed by .deb package without problems.)

Re: Mac-telnet for linux

Posted: Wed Oct 27, 2010 12:02 pm
by Eising
With help from Omni Flux' work, I've created a Linux native MAC-Telnet client.
Also a native OS X version is in beta stage.

You may find it in the download section at http://github.com/haakonnessjoen/MAC-Telnet

--
Håkon
Thank you, thank you, thank you so much!

Re: Mac-telnet for linux

Posted: Tue Nov 02, 2010 12:30 am
by haakon
Nice porting, i tested it and works fine!
New ideas incoming!! 8)
Thank you for the app
(installed by .deb package without problems.)
Please come with ideas :)
I've just uploaded a new commit that enables you to connect to your router by the routers identity name.
It uses the MNDP discovery protocol to find the first router that has the specified name.

Example below:
# mactelnet eth0 Holmenveien -u admin -p mypassword
Searching for 'Holmenveien'...0:c:42:3e:20:c2
Connecting to 0:c:42:3e:20:c2...done

It's in the current HEAD version, if you download from github. But not as a new .deb package yet. I will do that the next minior version increase.

Re: Mac-telnet for linux

Posted: Tue Nov 02, 2010 12:36 am
by Beccara
based on linux kernel doesn't mean that all the programs are from somewhere else. most of the stuff is made by mikrotik entirely, and we can't release it for linux for many reasons, including technical.
Wow so we have this quote and then a member of the community comes along and proves you wrong (almost complete). MT should cough up some cash for this guys work and release it because he earned it

Re: Mac-telnet for linux

Posted: Tue Nov 02, 2010 1:22 am
by haakon
based on linux kernel doesn't mean that all the programs are from somewhere else. most of the stuff is made by mikrotik entirely, and we can't release it for linux for many reasons, including technical.
Wow so we have this quote and then a member of the community comes along and proves you wrong (almost complete). MT should cough up some cash for this guys work and release it because he earned it
Actually, I think normis was answering mostly to the "winbox" part of the first posters request when he said "including technically". Winbox is not easily created for linux, as it uses windows dll's for it's dynamical support for automatically support newer RouterOS devices without upgrading the winbox.exe file.

This would then also require that they would create .so files for linux as well at each update and would need to use the same version of libraries as your linux distribution etc. which could be very different from distribution to distribution, unless you would recreate the winbox interface using the API support. But by using API it would require new versions of the program each time the API changes and each time new elements are added to RouterOS/API.

Anyways, adding linux support for winbox would require extra work that it might not be high enough demand after, to actually afford doing it. If enough customers needed it, they probably would do it. And since winbox works good enough in wine, the need is not that great.

Re: Mac-telnet for linux

Posted: Tue Nov 02, 2010 2:40 am
by Beccara
Fair enough about winbox, WINE is good enough for that but mac-telnet is missing on anything but windows, Its the one reason we still have take windows laptops out to do installs and not our android phones