mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
colors
This commit is contained in:
parent
3464dc2ebe
commit
2010f8db03
10 changed files with 164 additions and 70 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
local utils = require('utils')
|
||||||
|
local getopt = require('getopt')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
--[[
|
--[[
|
||||||
script to create a clone-dump with new crc
|
script to create a clone-dump with new crc
|
||||||
Author: mosci
|
Author: mosci
|
||||||
|
@ -86,7 +89,7 @@
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = 'Mosci'
|
author = 'Mosci'
|
||||||
version = 'v1.0.1'
|
version = 'v1.0.2'
|
||||||
desc = [[
|
desc = [[
|
||||||
This is a script which creates a clone-dump of a dump from a Legic Prime Tag (MIM256 or MIM1024)
|
This is a script which creates a clone-dump of a dump from a Legic Prime Tag (MIM256 or MIM1024)
|
||||||
(created with 'hf legic save my_dump.hex')
|
(created with 'hf legic save my_dump.hex')
|
||||||
|
@ -97,11 +100,12 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run legic_clone -h -i <file> -o <file> -c <crc> -d -s -w
|
script run legic_clone -h -i <file> -o <file> -c <crc> -d -s -w
|
||||||
|
]]
|
||||||
required arguments:
|
arguments = [[
|
||||||
|
required :
|
||||||
-i <input file> (file to read data from)
|
-i <input file> (file to read data from)
|
||||||
|
|
||||||
optional arguments :
|
optional :
|
||||||
-h - Help text
|
-h - Help text
|
||||||
-o <output file> - requires option -c to be given
|
-o <output file> - requires option -c to be given
|
||||||
-c <new-tag crc> - requires option -o to be given
|
-c <new-tag crc> - requires option -o to be given
|
||||||
|
@ -112,8 +116,7 @@ optional arguments :
|
||||||
e.g.:
|
e.g.:
|
||||||
hint: using the CRC '00' will result in a plain dump ( -c 00 )
|
hint: using the CRC '00' will result in a plain dump ( -c 00 )
|
||||||
]]
|
]]
|
||||||
local utils = require('utils')
|
|
||||||
local getopt = require('getopt')
|
|
||||||
local bxor = bit32.bxor
|
local bxor = bit32.bxor
|
||||||
|
|
||||||
-- we need always 2 digits
|
-- we need always 2 digits
|
||||||
|
@ -128,7 +131,6 @@ local function prepend_zero(s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
---
|
---
|
||||||
-- This is only meant to be used when errors occur
|
-- This is only meant to be used when errors occur
|
||||||
local function oops(err)
|
local function oops(err)
|
||||||
|
@ -136,7 +138,6 @@ local function oops(err)
|
||||||
core.clearCommandBuffer()
|
core.clearCommandBuffer()
|
||||||
return nil, err
|
return nil, err
|
||||||
end
|
end
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Usage help
|
-- Usage help
|
||||||
local function help()
|
local function help()
|
||||||
|
@ -144,9 +145,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check availability of file
|
-- Check availability of file
|
||||||
|
|
|
@ -3,10 +3,11 @@ local getopt = require('getopt')
|
||||||
local bin = require('bin')
|
local bin = require('bin')
|
||||||
local lib14a = require('read14a')
|
local lib14a = require('read14a')
|
||||||
local utils = require('utils')
|
local utils = require('utils')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = 'Iceman'
|
author = 'Iceman'
|
||||||
version = 'v1.0.1'
|
version = 'v1.0.2'
|
||||||
desc = [[
|
desc = [[
|
||||||
This script will generate 'hf mf wrbl' commands for each block to format a Mifare card.
|
This script will generate 'hf mf wrbl' commands for each block to format a Mifare card.
|
||||||
|
|
||||||
|
@ -29,8 +30,8 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run formatMifare -k <key> -n <key> -a <access> -x
|
script run formatMifare -k <key> -n <key> -a <access> -x
|
||||||
|
]]
|
||||||
Arguments:
|
arguments = [[
|
||||||
-h - this help
|
-h - this help
|
||||||
-k <key> - the current six byte key with write access
|
-k <key> - the current six byte key with write access
|
||||||
-n <key> - the new key that will be written to the card
|
-n <key> - the new key that will be written to the card
|
||||||
|
@ -71,9 +72,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
-- Exit message
|
-- Exit message
|
||||||
|
|
|
@ -2,38 +2,38 @@
|
||||||
-- Run me like this (connected via Blueshark addon): ./client/proxmark3 /dev/rfcomm0 -l ./hf_bruteforce.lua
|
-- Run me like this (connected via Blueshark addon): ./client/proxmark3 /dev/rfcomm0 -l ./hf_bruteforce.lua
|
||||||
|
|
||||||
local getopt = require('getopt')
|
local getopt = require('getopt')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = 'Daniel Underhay (updated), Keld Norman(original)'
|
author = 'Daniel Underhay (updated), Keld Norman(original)'
|
||||||
version = 'v2.0.0'
|
version = 'v2.0.1'
|
||||||
usage = [[
|
desc =[[
|
||||||
|
This script bruteforces 4 or 7 byte UID Mifare classic card numbers.
|
||||||
pm3 --> script run hf_bruteforce -s start_id -e end_id -t timeout -x mifare_card_type
|
]]
|
||||||
|
example =[[
|
||||||
Arguments:
|
|
||||||
-h this help
|
|
||||||
-s 0-0xFFFFFFFF start id
|
|
||||||
-e 0-0xFFFFFFFF end id
|
|
||||||
-t 0-99999, pause timeout (ms) between cards (use the word 'pause' to wait for user input)
|
|
||||||
-x mfc, mfu mifare type: mfc for Mifare Classic (default) or mfu for Mifare Ultralight EV1
|
|
||||||
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
pm3 --> script run hf_bruteforce -s 0x11223344 -e 0x11223346 -t 1000 -x mfc
|
|
||||||
|
|
||||||
Bruteforce a 4 byte UID Mifare classic card number, starting at 11223344, ending at 11223346.
|
Bruteforce a 4 byte UID Mifare classic card number, starting at 11223344, ending at 11223346.
|
||||||
|
|
||||||
|
script run hf_bruteforce -s 0x11223344 -e 0x11223346 -t 1000 -x mfc
|
||||||
pm3 --> script run hf_bruteforce -s 0x11223344556677 -e 0x11223344556679 -t 1000 -x mfu
|
|
||||||
|
|
||||||
Bruteforce a 7 byte UID Mifare Ultralight card number, starting at 11223344556677, ending at 11223344556679.
|
Bruteforce a 7 byte UID Mifare Ultralight card number, starting at 11223344556677, ending at 11223344556679.
|
||||||
|
|
||||||
|
script run hf_bruteforce -s 0x11223344556677 -e 0x11223344556679 -t 1000 -x mfu
|
||||||
|
]]
|
||||||
|
usage = [[
|
||||||
|
script run hf_bruteforce [-s <start_id>] [-e <end_id>] [-t <timeout>] [-x <mifare_card_type>]
|
||||||
|
]]
|
||||||
|
arguments = [[
|
||||||
|
-h this help
|
||||||
|
-s 0-0xFFFFFFFF start id
|
||||||
|
-e 0-0xFFFFFFFF end id
|
||||||
|
-t 0-99999, pause timeout (ms) between cards
|
||||||
|
(use the word 'pause' to wait for user input)
|
||||||
|
-x mfc, mfu mifare type:
|
||||||
|
mfc for Mifare Classic (default)
|
||||||
|
mfu for Mifare Ultralight EV1
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
||||||
local DEBUG = true
|
local DEBUG = true
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Debug print function
|
-- Debug print function
|
||||||
local function dbg(args)
|
local function dbg(args)
|
||||||
|
@ -62,9 +62,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
---
|
---
|
||||||
--- Print user message
|
--- Print user message
|
||||||
|
|
|
@ -1,6 +1,65 @@
|
||||||
local reader = require('hf_reader')
|
local reader = require('hf_reader')
|
||||||
|
local getopt = require('getopt')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
|
copyright = ''
|
||||||
|
author = ''
|
||||||
|
version = 'v1.0.1'
|
||||||
|
desc = [[
|
||||||
|
This script tries to detect a HF card. Just like 'hf search' does but this is experimental
|
||||||
|
]]
|
||||||
|
example = [[
|
||||||
|
1. script run hf_read
|
||||||
|
]]
|
||||||
|
usage = [[
|
||||||
|
script run hf_read
|
||||||
|
]]
|
||||||
|
arguments = [[
|
||||||
|
-h - this help
|
||||||
|
]]
|
||||||
|
---
|
||||||
|
-- This is only meant to be used when errors occur
|
||||||
|
local function dbg(err)
|
||||||
|
if not DEBUG then return end
|
||||||
|
if type(args) == 'table' then
|
||||||
|
local i = 1
|
||||||
|
while args[i] do
|
||||||
|
dbg(args[i])
|
||||||
|
i = i+1
|
||||||
|
end
|
||||||
|
else
|
||||||
|
print('###', args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
---
|
||||||
|
-- This is only meant to be used when errors occur
|
||||||
|
local function oops(err)
|
||||||
|
print('ERROR:', err)
|
||||||
|
core.clearCommandBuffer()
|
||||||
|
return nil, err
|
||||||
|
end
|
||||||
|
---
|
||||||
|
-- Usage help
|
||||||
|
local function help()
|
||||||
|
print(copyright)
|
||||||
|
print(author)
|
||||||
|
print(version)
|
||||||
|
print(desc)
|
||||||
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
|
end
|
||||||
|
---
|
||||||
|
--
|
||||||
local function main(args)
|
local function main(args)
|
||||||
|
-- Arguments for the script
|
||||||
|
for o, a in getopt.getopt(args, 'h') do
|
||||||
|
if o == 'h' then return help() end
|
||||||
|
end
|
||||||
|
|
||||||
print("WORK IN PROGRESS - not expected to be functional yet")
|
print("WORK IN PROGRESS - not expected to be functional yet")
|
||||||
info, err = reader.waitForTag()
|
info, err = reader.waitForTag()
|
||||||
|
|
||||||
|
@ -15,4 +74,5 @@ local function main(args)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
main(args)
|
main(args)
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
getopt = require('getopt')
|
getopt = require('getopt')
|
||||||
bin = require('bin')
|
bin = require('bin')
|
||||||
dumplib = require('html_dumplib')
|
dumplib = require('html_dumplib')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = 'Martin Holst Swende'
|
author = 'Martin Holst Swende'
|
||||||
version = 'v1.0.1'
|
version = 'v1.0.2'
|
||||||
desc =[[
|
desc =[[
|
||||||
This script takes a dumpfile and produces a html based dump, which is a
|
This script takes a dumpfile and produces a html based dump, which is a
|
||||||
bit more easily analyzed.
|
bit more easily analyzed.
|
||||||
|
@ -16,8 +17,8 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run htmldump [-i <file>] [-o <file>]
|
script run htmldump [-i <file>] [-o <file>]
|
||||||
|
]]
|
||||||
Arguments:
|
arguments = [[
|
||||||
-h This help
|
-h This help
|
||||||
-i <file> Specifies the dump-file (input). If omitted, 'dumpdata.bin' is used
|
-i <file> Specifies the dump-file (input). If omitted, 'dumpdata.bin' is used
|
||||||
-o <filename> Speciies the output file. If omitted, <curtime>.html is used.
|
-o <filename> Speciies the output file. If omitted, <curtime>.html is used.
|
||||||
|
@ -55,9 +56,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function main(args)
|
local function main(args)
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
local getopt = require('getopt')
|
local getopt = require('getopt')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = 'Copyright (c) 2019 IceSQL AB. All rights reserved.'
|
copyright = 'Copyright (c) 2019 IceSQL AB. All rights reserved.'
|
||||||
author = 'Christian Herrmann'
|
author = 'Christian Herrmann'
|
||||||
version = 'v1.0.0'
|
version = 'v1.0.1'
|
||||||
desc = [[
|
desc = [[
|
||||||
This script initialize a Proxmark3 RDV4.0 with
|
This script initialize a Proxmark3 RDV4.0 with
|
||||||
- uploading dictionary files to flashmem
|
- uploading dictionary files to flashmem
|
||||||
- configuring the LF T55X7 device settings
|
- configuring the LF T55X7 device settings
|
||||||
]]
|
]]
|
||||||
example = [[
|
example = [[
|
||||||
|
|
||||||
script run init_rdv4
|
script run init_rdv4
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run init_rdv4 -h
|
script run init_rdv4 -h
|
||||||
|
]]
|
||||||
Arguments:
|
arguments = [[
|
||||||
-h : this help
|
-h : this help
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
@ -48,9 +48,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
---
|
---
|
||||||
-- The main entry point
|
-- The main entry point
|
||||||
|
|
|
@ -2,10 +2,11 @@ local cmds = require('commands')
|
||||||
local lib15 = require('read15')
|
local lib15 = require('read15')
|
||||||
local getopt = require('getopt')
|
local getopt = require('getopt')
|
||||||
local utils = require('utils')
|
local utils = require('utils')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = 'Copyright (c) 2018 IceSQL AB. All rights reserved.'
|
copyright = 'Copyright (c) 2018 IceSQL AB. All rights reserved.'
|
||||||
author = 'Christian Herrmann'
|
author = 'Christian Herrmann'
|
||||||
version = 'v1.0.5'
|
version = 'v1.0.6'
|
||||||
desc = [[
|
desc = [[
|
||||||
This script tries to set UID on a IS15693 SLIX magic card
|
This script tries to set UID on a IS15693 SLIX magic card
|
||||||
Remember the UID ->MUST<- start with 0xE0
|
Remember the UID ->MUST<- start with 0xE0
|
||||||
|
@ -20,8 +21,8 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run iso15_magic -h -u <uid>
|
script run iso15_magic -h -u <uid>
|
||||||
|
]]
|
||||||
Arguments:
|
arguments = [[
|
||||||
-h : this help
|
-h : this help
|
||||||
-u <UID> : UID (16 hexsymbols)
|
-u <UID> : UID (16 hexsymbols)
|
||||||
-a : use offical pm3 repo ISO15 commands instead of iceman fork.
|
-a : use offical pm3 repo ISO15 commands instead of iceman fork.
|
||||||
|
@ -56,9 +57,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
--- Set UID on magic command enabled on a ICEMAN based REPO
|
--- Set UID on magic command enabled on a ICEMAN based REPO
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
local utils = require('utils')
|
local utils = require('utils')
|
||||||
local getopt = require('getopt')
|
local getopt = require('getopt')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
-- this script writes bytes 8 to 256 on the Legic MIM256
|
-- this script writes bytes 8 to 256 on the Legic MIM256
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = 'Mosci'
|
author = 'Mosci'
|
||||||
version = 'v1.0.1'
|
version = 'v1.0.2'
|
||||||
desc =
|
desc =
|
||||||
[[
|
[[
|
||||||
This is a script which writes value 0x01 to bytes from position 0x07 until 0xFF on a Legic Prime Tag (MIM256 or MIM1024) -- (created with 'hf legic save my_dump.hex') --
|
This is a script which writes value 0x01 to bytes from position 0x07 until 0xFF on a Legic Prime Tag (MIM256 or MIM1024) -- (created with 'hf legic save my_dump.hex') --
|
||||||
|
@ -14,8 +15,8 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run legic_buffer2card -h
|
script run legic_buffer2card -h
|
||||||
|
]]
|
||||||
Arguments
|
arguments = [[
|
||||||
-h - Help text
|
-h - Help text
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
@ -33,9 +34,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
-- simple loop-write from 0x07 to 0xff
|
-- simple loop-write from 0x07 to 0xff
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
-- Updated 2017-04-18
|
-- Updated 2017-04-18
|
||||||
-- Updated 2018-02-20 iceman
|
-- Updated 2018-02-20 iceman
|
||||||
local getopt = require('getopt')
|
local getopt = require('getopt')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = "Brian Redbeard"
|
author = "Brian Redbeard"
|
||||||
version = 'v1.0.1'
|
version = 'v1.0.2'
|
||||||
desc = [[
|
desc = [[
|
||||||
Perform bulk enrollment of 26 bit H10301 style RFID Tags
|
Perform bulk enrollment of 26 bit H10301 style RFID Tags
|
||||||
For more info, check the comments in the code
|
For more info, check the comments in the code
|
||||||
|
@ -17,8 +18,8 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run lf_bulk.lua -f facility -b base_id_num -c count
|
script run lf_bulk.lua -f facility -b base_id_num -c count
|
||||||
|
]]
|
||||||
Arguments:
|
arguments = [[
|
||||||
-h : this help
|
-h : this help
|
||||||
-f : facility id
|
-f : facility id
|
||||||
-b : starting card id
|
-b : starting card id
|
||||||
|
@ -56,9 +57,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
---
|
---
|
||||||
-- Exit message
|
-- Exit message
|
||||||
|
|
|
@ -2,10 +2,11 @@ local cmds = require('commands')
|
||||||
local getopt = require('getopt')
|
local getopt = require('getopt')
|
||||||
local lib14a = require('read14a')
|
local lib14a = require('read14a')
|
||||||
local utils = require('utils')
|
local utils = require('utils')
|
||||||
|
local ansicolors = require('ansicolors')
|
||||||
|
|
||||||
copyright = ''
|
copyright = ''
|
||||||
author = 'Kevin'
|
author = 'Kevin'
|
||||||
version = 'v1.0.1'
|
version = 'v1.0.2'
|
||||||
desc = [[
|
desc = [[
|
||||||
This is a script that reads LTO-CM ISO14443a tags.
|
This is a script that reads LTO-CM ISO14443a tags.
|
||||||
It starts from block 0 and ends at default block 254.
|
It starts from block 0 and ends at default block 254.
|
||||||
|
@ -19,8 +20,8 @@ example = [[
|
||||||
]]
|
]]
|
||||||
usage = [[
|
usage = [[
|
||||||
script run lto_dump -h -s -e
|
script run lto_dump -h -s -e
|
||||||
|
]]
|
||||||
Arguments:
|
arguments = [[
|
||||||
h this helptext
|
h this helptext
|
||||||
s start block in decimal
|
s start block in decimal
|
||||||
e end block in decimal
|
e end block in decimal
|
||||||
|
@ -58,9 +59,12 @@ local function help()
|
||||||
print(author)
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print('Example usage')
|
print(ansicolors.cyan..'Usage'..ansicolors.reset)
|
||||||
print(example)
|
|
||||||
print(usage)
|
print(usage)
|
||||||
|
print(ansicolors.cyan..'Arguments'..ansicolors.reset)
|
||||||
|
print(arguments)
|
||||||
|
print(ansicolors.cyan..'Example usage'..ansicolors.reset)
|
||||||
|
print(example)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function sendRaw(rawdata, options)
|
local function sendRaw(rawdata, options)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue