mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
style
This commit is contained in:
parent
811f76785d
commit
e18194028b
15 changed files with 792 additions and 792 deletions
|
@ -1,4 +1,4 @@
|
|||
--
|
||||
--
|
||||
-- hf_mf_sim_hid.lua - A tool to clone a large number of tags at once.
|
||||
-- Adapted from lf_hid_bulkclone.lua
|
||||
-- Created 16.08.2022
|
||||
|
@ -110,7 +110,7 @@ end
|
|||
hex. This should be easy enough to extend to non 26bit formats
|
||||
]]--
|
||||
local function cardHex(i, f)
|
||||
|
||||
|
||||
fac = lshift(f, 16)
|
||||
id = bor(i, fac)
|
||||
stream = toBits(id, 24)
|
||||
|
|
|
@ -108,7 +108,7 @@ local function main(args)
|
|||
-- only deal with missing PWD and PACK, or with 56 emu hdr
|
||||
if #hex ~= 1064 and #hex ~= 1080 and #hex ~= 1192 then return oops('Expecting either a plain binary or emulator dump') end
|
||||
|
||||
local amiibo_offset = (#hex == 1064 or #hex == 1080) and 0 or 112
|
||||
local amiibo_offset = (#hex == 1064 or #hex == 1080) and 0 or 112
|
||||
local amiibo_info = hex:sub(amiibo_offset + 169, amiibo_offset + 169 + 15):lower()
|
||||
local amiibo_game = amiibo_info:sub(1, 3)
|
||||
local amiibo_type = amiibo_info:sub(7, 8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue