mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
removing some crc
This commit is contained in:
parent
cbff5bcace
commit
46783e519a
1 changed files with 5 additions and 1 deletions
|
@ -172,11 +172,15 @@ function main(args)
|
||||||
local d0_d15 = getdata(res)
|
local d0_d15 = getdata(res)
|
||||||
|
|
||||||
payload = "80"
|
payload = "80"
|
||||||
res, err = send(payload, {ignore_response = false, append_crc = false})
|
res, err = send(payload, {ignore_response = false, append_crc = true})
|
||||||
if err then return end
|
if err then return end
|
||||||
|
|
||||||
local d16_d31 = getdata(res)
|
local d16_d31 = getdata(res)
|
||||||
|
|
||||||
|
-- remove crc bytes
|
||||||
|
d0_d15 = string.sub(d0_d15, 0, #d0_d15 - 4)
|
||||||
|
d16_d31 = string.sub(d16_d31, 0, #d16_d31 - 4)
|
||||||
|
|
||||||
print(block, d0_d15, d16_d31)
|
print(block, d0_d15, d16_d31)
|
||||||
table.insert(block_data, d0_d15..d16_31)
|
table.insert(block_data, d0_d15..d16_31)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue