From c6e2bfcda1d13453fe6bf1192422f0974a412dbb Mon Sep 17 00:00:00 2001
From: "martin.holst@gmail.com"
 <martin.holst@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Date: Wed, 26 Jun 2013 20:49:04 +0000
Subject: [PATCH] Removed some crap-scripts for testing

---
 client/scripts/helloworld.lua | 14 -------------
 client/scripts/mifare.lua     | 37 -----------------------------------
 2 files changed, 51 deletions(-)
 delete mode 100644 client/scripts/helloworld.lua
 delete mode 100644 client/scripts/mifare.lua

diff --git a/client/scripts/helloworld.lua b/client/scripts/helloworld.lua
deleted file mode 100644
index fd4d2b44..00000000
--- a/client/scripts/helloworld.lua
+++ /dev/null
@@ -1,14 +0,0 @@
-print("Helleo world!");
-
-print("hf:", hf);
-
-print("hf.mf:",hf.mf);
-print("and now... ");
-print("hf.mf.mifare",hf.mf.mifare);
-
-hf.mf.nested("");
-
-	
-function foo()
- print("Hi I am the foo function!");
-end
diff --git a/client/scripts/mifare.lua b/client/scripts/mifare.lua
deleted file mode 100644
index 93837d03..00000000
--- a/client/scripts/mifare.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local desc = "How would the classic mifare hack look in lua? Let's find out "
-print(desc);
-
-print("This script isn't even remotely finished!")
-print("Checking preconditions");
-print("core", core)
-print("core.SendCommand", core.SendCommand)
-print("core.WaitForResponseTimeout", core.WaitForResponseTimeout)
-print("core.nonce2key", core.nonce2key)
--- To actually send something meaningful, we need to include the 'Binlib' or 'lpack' library. 
-local cmd = 0x0611 -- CMD_READER_MIFARE - uint_64
-local arg1, arg2, arg3  = "0","0","0" -- 3 x uint_64
-local d  =  string.rep("00",512)-- 512 bytes
-local usbcommand = bin.pack("LLLLH",cmd, arg1, arg2, arg3,d);
-print("len(usbcommand): ", string.len(usbcommand));
-local x = core.SendCommand(usbcommand);
-local result
-repeat 
-	result = core.WaitForResponseTimeout(cmd,1000)
-	print(".")
-until result
-
-local r_cmd, r_arg1, r_arg2, r_arg3,r_data;
---[[
-response = bin.unpack()
-isOK  = resp.arg[0] & 0xff;
-	
-uid = (uint32_t)bytes_to_num(resp.d.asBytes +  0, 4);
-nt =  (uint32_t)bytes_to_num(resp.d.asBytes +  4, 4);
-par_list = bytes_to_num(resp.d.asBytes +  8, 8);
-ks_list = bytes_to_num(resp.d.asBytes +  16, 8);
-	
-
-end
---]]
---- Oh, and nonce2Key is not 'glued' yet. 
-print("err", result)
\ No newline at end of file
-- 
2.39.5