Community discussions

MikroTik App
 
Mark66
just joined
Topic Author
Posts: 22
Joined: Mon Apr 27, 2009 8:29 pm

Mac-telnet for linux

Sun Dec 20, 2009 12:14 pm

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!
 
roadracer96
Forum Veteran
Forum Veteran
Posts: 714
Joined: Tue Aug 25, 2009 12:01 am

Re: Mac-telnet for linux

Sun Dec 20, 2009 4:31 pm

Wine
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24708
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Mac-telnet for linux

Tue Dec 22, 2009 9:37 am

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.
No answer to your question? How to write posts
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Mac-telnet for linux

Wed Dec 23, 2009 3:32 am

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.
--
Butch Evans
Mikrotik Certified Trainer
Mikrotik Certified Consultant
BLOG: blog.butchevans.com
http://store.wispgear.net/
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Posts: 174
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Mac-telnet for linux

Wed Dec 23, 2009 2:42 pm

I did some work time ago, basically the authentication part only.
Not useful yet.
 
Omniflux
just joined
Posts: 11
Joined: Sun Sep 19, 2004 1:27 am
Location: Nephi, UT. USA
Contact:

Re: Mac-telnet for linux

Thu Jan 21, 2010 2:06 am

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
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8464
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Mac-telnet for linux

Fri Jan 22, 2010 6:33 pm

maybe it's similar to API authentication? =)
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
Omniflux
just joined
Posts: 11
Joined: Sun Sep 19, 2004 1:27 am
Location: Nephi, UT. USA
Contact:

Re: Mac-telnet for linux

Sat Jan 23, 2010 4:05 am

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.
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

Re: Mac-telnet for linux

Thu Feb 04, 2010 4:10 pm

Does this mean you have a working implementation? Could you share that?
The road to hell is paved with good intentions.
 
chickenlittle
just joined
Posts: 13
Joined: Sun Mar 15, 2009 3:35 pm

Re: Mac-telnet for linux

Wed Mar 17, 2010 12:07 am

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 :-)
 
Omniflux
just joined
Posts: 11
Joined: Sun Sep 19, 2004 1:27 am
Location: Nephi, UT. USA
Contact:

Re: Mac-telnet for linux

Wed Mar 17, 2010 6:34 am

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
 
chickenlittle
just joined
Posts: 13
Joined: Sun Mar 15, 2009 3:35 pm

Re: Mac-telnet for linux

Wed Mar 17, 2010 9:27 am

wow, thank you very much, that should be helpful!
 
haakon
just joined
Posts: 19
Joined: Sat May 02, 2009 6:02 pm

Re: Mac-telnet for linux

Wed Oct 27, 2010 10:42 am

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Mac-telnet for linux

Wed Oct 27, 2010 10:53 am

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.
 
haakon
just joined
Posts: 19
Joined: Sat May 02, 2009 6:02 pm

Re: Mac-telnet for linux

Wed Oct 27, 2010 11:17 am

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?
--
Håkon Nessjøen
<haakon.nessjoen[a]gmail.com>
 
Muqatil
Trainer
Trainer
Posts: 574
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: Mac-telnet for linux

Wed Oct 27, 2010 11:53 am

Nice porting, i tested it and works fine!
New ideas incoming!! 8)
Thank you for the app
(installed by .deb package without problems.)
Renato Bernardi

skype: medtech5
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

Re: Mac-telnet for linux

Wed Oct 27, 2010 12:02 pm

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!
The road to hell is paved with good intentions.
 
haakon
just joined
Posts: 19
Joined: Sat May 02, 2009 6:02 pm

Re: Mac-telnet for linux

Tue Nov 02, 2010 12:30 am

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.
--
Håkon Nessjøen
<haakon.nessjoen[a]gmail.com>
 
Beccara
Long time Member
Long time Member
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Re: Mac-telnet for linux

Tue Nov 02, 2010 12:36 am

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
 
haakon
just joined
Posts: 19
Joined: Sat May 02, 2009 6:02 pm

Re: Mac-telnet for linux

Tue Nov 02, 2010 1:22 am

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.
--
Håkon Nessjøen
<haakon.nessjoen[a]gmail.com>
 
Beccara
Long time Member
Long time Member
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Re: Mac-telnet for linux

Tue Nov 02, 2010 2:40 am

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

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 82 guests