summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-02 11:48:42 +0200
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-02 11:48:42 +0200
commit5d3806897b1d9b406135ba9b8b460ed5b5a21cf0 (patch)
tree3babe155d61e2f5852df5a8caaa173ea26cd1ec6
parent01982930a4852345c3b54d2c82f5c5ae7a2d970f (diff)
downloadMAC-Telnet-5d3806897b1d9b406135ba9b8b460ed5b5a21cf0.tar.gz
MAC-Telnet-5d3806897b1d9b406135ba9b8b460ed5b5a21cf0.zip
Updated README
-rw-r--r--README1
-rw-r--r--README.markdown40
-rw-r--r--main.c1
3 files changed, 41 insertions, 1 deletions
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);