X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f83cc12613d18f6a5a3a5e6c01f7b83cae2ee92f..83a42ef965b5d04ae98cce58103b6201b6155d6c:/client/cmdhficlass.c?ds=inline diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 13ffc8ba..31f7ba97 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -1,6 +1,7 @@ //----------------------------------------------------------------------------- // Copyright (C) 2010 iZsh , Hagen Fritsch // Copyright (C) 2011 Gerhard de Koning Gans +// Copyright (C) 2014 Midnitesnake & Andy Davies & Martin Holst Swende // // This code is licensed to you under the terms of the GNU GPL, version 2 or, // at your option, any later version. See the LICENSE.txt file for the text of @@ -12,9 +13,9 @@ #include #include #include +#include #include "iso14443crc.h" // Can also be used for iClass, using 0xE012 as CRC-type #include "data.h" -//#include "proxusb.h" #include "proxmark3.h" #include "ui.h" #include "cmdparser.h" @@ -22,6 +23,13 @@ #include "common.h" #include "util.h" #include "cmdmain.h" +#include "loclass/des.h" +#include "loclass/cipherutils.h" +#include "loclass/cipher.h" +#include "loclass/ikeys.h" +#include "loclass/elite_crack.h" +#include "loclass/fileutils.h" +#include "protocols.h" static int CmdHelp(const char *Cmd); @@ -36,407 +44,659 @@ int xorbits_8(uint8_t val) int CmdHFiClassList(const char *Cmd) { + PrintAndLog("Deprecated command, use 'hf list iclass' instead"); + return 0; +} - bool ShowWaitCycles = false; - char param = param_getchar(Cmd, 0); +int CmdHFiClassSnoop(const char *Cmd) +{ + UsbCommand c = {CMD_SNOOP_ICLASS}; + SendCommand(&c); + return 0; +} +int usage_hf_iclass_sim() +{ + PrintAndLog("Usage: hf iclass sim