remove tabs
This commit is contained in:
@@ -243,7 +243,7 @@ void printEM410x(uint32_t hi, uint64_t id) {
|
||||
|
||||
if (!id && !hi) return;
|
||||
|
||||
PrintAndLogEx(SUCCESS, "EM410x%s pattern found", (hi) ? " XL " : "");
|
||||
PrintAndLogEx(SUCCESS, "EM410x%s pattern found", (hi) ? " XL" : "");
|
||||
|
||||
uint64_t n = 1;
|
||||
uint64_t id2lo = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "emv/emvcore.h" // decodeTVL
|
||||
#include "emv/apduinfo.h" // APDUcode description
|
||||
#include "emv/dump.h" // dump_buffer
|
||||
#include "crypto/libpcrypto.h" // sha512hash
|
||||
#include "crypto/libpcrypto.h" // sha512hash
|
||||
|
||||
int CmdSmartcard(const char *Cmd);
|
||||
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
BEGIN {
|
||||
print "--[["
|
||||
print "These are default_keys dictionary"
|
||||
print "This file is automatically generated from default_keys.h - DON'T EDIT MANUALLY."
|
||||
print "--]]"
|
||||
print "local _keys = {"
|
||||
print "--[["
|
||||
print "These are default_keys dictionary"
|
||||
print "This file is automatically generated from default_keys.h - DON'T EDIT MANUALLY."
|
||||
print "--]]"
|
||||
print "local _keys = {"
|
||||
}
|
||||
|
||||
$1 ~ /^[A-Fa-f0-9]+/ { sub(/\r/, ""); print " '"substr($1,1,12)"'," }
|
||||
|
||||
END {
|
||||
print "}"
|
||||
|
||||
print "---"
|
||||
print "-- The keys above have just been pasted in, for completeness sake. They contain duplicates. "
|
||||
print "-- We need to weed the duplicates out before we expose the list to someone who actually wants to use them"
|
||||
print "-- @param list a list to do 'uniq' on"
|
||||
print ""
|
||||
print "local function uniq(list)"
|
||||
print "}"
|
||||
print "---"
|
||||
print "-- The keys above have just been pasted in, for completeness sake. They contain duplicates. "
|
||||
print "-- We need to weed the duplicates out before we expose the list to someone who actually wants to use them"
|
||||
print "-- @param list a list to do 'uniq' on"
|
||||
print ""
|
||||
print " local foobar = {}"
|
||||
print "local function uniq(list)"
|
||||
print ""
|
||||
print " local foobar = {}"
|
||||
print " for _, value in pairs(list) do"
|
||||
print " value = value:lower()"
|
||||
print " if not foobar[value] then"
|
||||
@@ -29,4 +28,4 @@ END {
|
||||
print " return foobar"
|
||||
print "end"
|
||||
print "return uniq(_keys)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
for i in /sys/bus/usb/devices/*; do
|
||||
if grep "9ac4" "${i}/idVendor" >/dev/null 2>&1; then
|
||||
echo "Found Proxmark..."
|
||||
dev=`basename "${i}"`
|
||||
if grep "9ac4" "${i}/idVendor" >/dev/null 2>&1; then
|
||||
echo "Found Proxmark..."
|
||||
dev=`basename "${i}"`
|
||||
|
||||
for j in /sys/bus/usb/drivers/usbhid/*; do
|
||||
if basename "${j}"|grep "^${dev}" >/dev/null; then
|
||||
bound="`basename "${j}"`"
|
||||
echo "Unbinding ${bound}..."
|
||||
echo -n "${bound}" >/sys/bus/usb/drivers/usbhid/unbind
|
||||
fi
|
||||
done
|
||||
fi
|
||||
for j in /sys/bus/usb/drivers/usbhid/*; do
|
||||
if basename "${j}"|grep "^${dev}" >/dev/null; then
|
||||
bound="`basename "${j}"`"
|
||||
echo "Unbinding ${bound}..."
|
||||
echo -n "${bound}" >/sys/bus/usb/drivers/usbhid/unbind
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -4,7 +4,7 @@ iclass_dump.bin
|
||||
===============
|
||||
The file iclass_dump.bin contains CSN's mac results from 128 CSNs.
|
||||
Hence when running the test mode,
|
||||
'hf iclass loclass t'
|
||||
'hf iclass loclass t'
|
||||
it shows a long output from the bruteforce test.
|
||||
|
||||
iclass_key.bin
|
||||
|
||||
@@ -239,9 +239,9 @@ local function main( args)
|
||||
for k,v in ipairs(blockData) do
|
||||
|
||||
-- print(string.format('Block %02x: %02x %02x %02x %02x', k-1, string.byte(v, 1,4)))
|
||||
print(string.format(' %02x | %s', k-1, v) )
|
||||
print(string.format(' %02x | %s', k-1, v) )
|
||||
end
|
||||
print('|---|-------------------|')
|
||||
print('|---|-------------------|')
|
||||
|
||||
local filename, err = utils.WriteDumpFile(info.uid, blockData)
|
||||
if err then return oops(err) end
|
||||
|
||||
@@ -82,11 +82,11 @@ local function main(args)
|
||||
|
||||
-- num of bytes to read
|
||||
if o == 'l' then
|
||||
length = tonumber(a)
|
||||
if length < 0 or length > 256 then
|
||||
return oops('Error: Length is not valid. Must be less than 256')
|
||||
end
|
||||
end
|
||||
length = tonumber(a)
|
||||
if length < 0 or length > 256 then
|
||||
return oops('Error: Length is not valid. Must be less than 256')
|
||||
end
|
||||
end
|
||||
|
||||
-- keylength
|
||||
if o == 'k' then keylength = tonumber(a); usedkey = true end
|
||||
|
||||
Reference in New Issue
Block a user