haakonnessjoen / MAC-Telnet

Open source MAC Telnet client and server for connecting to Mikrotik RouterOS routers and Posix devices using MAC addresses
http://lunatic.no/2010/10/routeros-mac-telnet-application-for-linux-users/
GNU General Public License v2.0
397 stars 127 forks source link

Login options not working with updated auth scheme. #77

Closed inean closed 2 years ago

inean commented 2 years ago

Hi, tried HEAD version of mactelnet. Works great with ROS 7.5 but, to be able to use an expect script, disable colors is a must. Unfortunately, use color options as specified in https://help.mikrotik.com/docs/display/ROS/Command+Line+Interface makes authentication fail.

example: login: admin -> works login: admin+c80w -> fails

haakonnessjoen commented 2 years ago

Could you please do a packet capture on your ros device when you use terminal in winbox to mac-telnet into a routeros device, so that I could inspect the data sent? I would think that it actually sends the username "admin", but interprets the options on the side changing the initial ENV variables sent in the connection process. I was not aware of this feature of the command line interface. So do a capture using Mikrotiks own tools, and send me?

inean commented 2 years ago

Get it working locally (think so). I will send you a pr later this evening

khefifioussama commented 2 years ago

Yes I can work locally Alonso remotely

Le mar. 11 oct. 2022 à 12:28 PM, Håkon Nessjøen @.***> a écrit :

Closed #77 https://github.com/haakonnessjoen/MAC-Telnet/issues/77 as completed via #78 https://github.com/haakonnessjoen/MAC-Telnet/pull/78.

— Reply to this email directly, view it on GitHub https://github.com/haakonnessjoen/MAC-Telnet/issues/77#event-7561792996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4KKUWFYQVRXCW5XJIGUHDWCVFOFANCNFSM6AAAAAAQ7AB4II . You are receiving this because you are subscribed to this thread.Message ID: @.***>

haakonnessjoen commented 2 years ago

@khefifioussama Pretty sure you didn't mean to write that here?

khefifioussama commented 2 years ago

Ok I interstand

Le mar. 11 oct. 2022 à 12:40 PM, Håkon Nessjøen @.***> a écrit :

@khefifioussama https://github.com/khefifioussama Pretty sure you didn't mean to write that here?

— Reply to this email directly, view it on GitHub https://github.com/haakonnessjoen/MAC-Telnet/issues/77#issuecomment-1274547626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4KKUTFHPSO3B6P4E2M65DWCVGZDANCNFSM6AAAAAAQ7AB4II . You are receiving this because you were mentioned.Message ID: @.***>