mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
chg: 'brutesim' - script prints author and checks for being called with no arguments.
This commit is contained in:
parent
5b6a5206df
commit
5dbfb627fc
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,7 @@ end
|
||||||
-- Usage help
|
-- Usage help
|
||||||
local function help()
|
local function help()
|
||||||
print(copyright)
|
print(copyright)
|
||||||
|
print(author)
|
||||||
print(version)
|
print(version)
|
||||||
print(desc)
|
print(desc)
|
||||||
print("Example usage")
|
print("Example usage")
|
||||||
|
@ -144,6 +145,8 @@ local function main(args)
|
||||||
print( string.rep('--',20) )
|
print( string.rep('--',20) )
|
||||||
print( string.rep('--',20) )
|
print( string.rep('--',20) )
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
if #args == 0 then return help() end
|
||||||
|
|
||||||
for o, a in getopt.getopt(args, 'r:f:b:c:t:d:h') do -- Populate command like arguments
|
for o, a in getopt.getopt(args, 'r:f:b:c:t:d:h') do -- Populate command like arguments
|
||||||
if o == 'r' then rfidtag = a end
|
if o == 'r' then rfidtag = a end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue