diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-10-02 11:48:42 +0200 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-10-02 11:48:42 +0200 |
commit | 5d3806897b1d9b406135ba9b8b460ed5b5a21cf0 (patch) | |
tree | 3babe155d61e2f5852df5a8caaa173ea26cd1ec6 | |
parent | 01982930a4852345c3b54d2c82f5c5ae7a2d970f (diff) | |
download | MAC-Telnet-5d3806897b1d9b406135ba9b8b460ed5b5a21cf0.tar.gz MAC-Telnet-5d3806897b1d9b406135ba9b8b460ed5b5a21cf0.zip |
Updated README
-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); |