From 5d3806897b1d9b406135ba9b8b460ed5b5a21cf0 Mon Sep 17 00:00:00 2001 From: Håkon Nessjøen Date: Sat, 2 Oct 2010 11:48:42 +0200 Subject: Updated README --- README | 1 - README.markdown | 40 ++++++++++++++++++++++++++++++++++++++++ main.c | 1 + 3 files changed, 41 insertions(+), 1 deletion(-) delete mode 100644 README create mode 100644 README.markdown diff --git a/README b/README deleted file mode 100644 index efe7e7f..0000000 --- a/README +++ /dev/null @@ -1 +0,0 @@ -To be written diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..c285f65 --- /dev/null +++ b/README.markdown @@ -0,0 +1,40 @@ +MAC-Telnet for Linux +==================== + +A linux console tool for connecting to MikroTik RouterOS devices via their +ethernet address. + +NB: Alpha stage code. Do not expect to run flawlessy. + +Installation +------------ + +Download source tarball, extract, compile and install: + + wget http://github.com/haakonnessjoen/MAC-Telnet/tarball/master + tar zxvf haakonness*.tar.gz + cd haakonness*/ + make all install + +Now you're ready. + +Usage +----- + + $ sudo ./mactelnet eth0 0:c:42:43:58:a5 admin mysecretpass + Connecting to 0:c:42:43:58:a5...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 4.0 (c) 1999-2009 http://www.mikrotik.com/ + + + [admin@HMG] > + +You can also ommit the password if you don't want to pollute your bash_history with passwords. diff --git a/main.c b/main.c index 4c05244..31ad820 100644 --- a/main.c +++ b/main.c @@ -122,6 +122,7 @@ void handlePacket(unsigned char *data, int data_len) { int plen=0,result=0; int rest = 0; unsigned char *p = data; + plen = initPacket(odata, MT_PTYPE_ACK, srcmac, dstmac, sessionkey, pkthdr.counter + (data_len - 22)); result = sendUDP(odata, plen); -- cgit v1.2.3