diff options
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | README.markdown | 40 | ||||
-rw-r--r-- | main.c | 1 |
3 files changed, 41 insertions, 1 deletions
@@ -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. @@ -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); |