Skip to content

Commit 2597c75

Browse files
committed
style
1 parent cb8bb8d commit 2597c75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+135
-99
lines changed

client/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ endif
452452
ifeq ($(SWIG_LUA_FOUND),1)
453453
PM3CFLAGS += -DHAVE_LUA_SWIG
454454
endif
455+
455456
ifeq ($(SWIG_PYTHON_FOUND),1)
456457
PM3CFLAGS += -DHAVE_PYTHON_SWIG
457458
endif
@@ -594,6 +595,7 @@ endif
594595
ifeq ($(SWIG_LUA_FOUND),1)
595596
$(info Lua SWIG: wrapper found)
596597
endif
598+
597599
ifeq ($(SWIG_PYTHON_FOUND),1)
598600
$(info Python SWIG: wrapper found)
599601
endif

client/deps/mqtt/posix_sockets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int open_nb_socket(const char *addr, const char *port) {
5353
break;
5454
}
5555

56-
// free servinfo
56+
// free servinfo
5757
freeaddrinfo(servinfo);
5858

5959
// make non-blocking
@@ -70,4 +70,4 @@ void close_nb_socket(int sockfd) {
7070
}
7171
}
7272
#endif
73-
#endif
73+
#endif

client/deps/mqtt/win32_sockets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mqtt_pal_socket_handle open_nb_socket(const char *addr, const char *port) {
2929
hints.ai_protocol = IPPROTO_TCP; //
3030

3131
struct addrinfo *p, *servinfo;
32-
// get address information
32+
// get address information
3333
int rv = getaddrinfo(addr, port, &hints, &servinfo);
3434
if (rv != 0) {
3535
fprintf(stderr, "error: getaddrinfo: %s", gai_strerror(rv));

client/dictionaries/mfc_default_keys.dic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,7 @@ FAB943906E9C
25422542
# R.A.T.T transport card key A/B
25432543
AA034F342A55
25442544
456776908C48
2545-
2545+
#
25462546
# BusFacil - Brazilian public transport card for some cities
25472547
fae9b14365a9
25482548
c567dd4a6004

client/luascripts/kybercrystals.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Simple script to program DIY kyber crystals
33
works on real kyber crystals and EM4305 2.12x12mm chips
44
simply run the program and select a profile via a number
5-
5+
66
issues
77
if you are getting errors when trying to read or write a chip
88
run the cmd "lf tune" with no chip on the device, then move the chip over the coils till you see the lowest voltage. try different angles and in the center and or the edge of the antenna ring.
99
once you find the lowest voltage then try running the script again.
1010
if thats still not working run "lf tune" again and put the chip in the best position like before
1111
the total voltage may be too high to reduce it slowly lower tin foil over the antenna and watch the voltage.
1212
the foil should be a bit bigger than the coil exact size does not matter.
13-
13+
1414
data pulled from here
1515
https://docs.google.com/spreadsheets/d/13P_GE6tNYpGvoVUTEQvA3SQzMqpZ-SoiWaTNoJoTV9Q/edit?usp=sharing
1616
--]]
@@ -663,20 +663,20 @@ function get_profile_data(profile_name)
663663
[9] = "010D0000"
664664
}
665665
}
666-
666+
667667
-- When called without arguments, return the whole table
668668
if not profile_name then
669669
return profiles
670670
end
671-
671+
672672
-- Otherwise return the specific profile or wipe chip
673673
return profiles[profile_name] or profiles["wipe chip"]
674674
end
675675

676676
function get_profile_names()
677677
-- Get the complete profiles table from get_profile_data
678678
local all_profiles = get_profile_data()
679-
679+
680680
local names = {}
681681
for name, _ in pairs(all_profiles) do
682682
table.insert(names, name)
@@ -687,16 +687,16 @@ end
687687

688688
function select_profile()
689689
local profile_names = get_profile_names()
690-
690+
691691
print("\nAvailable profiles:")
692692
for i, name in ipairs(profile_names) do
693693
print(string.format("%d. %s", i, name))
694694
end
695-
695+
696696
while true do
697697
io.write("\nSelect profile (1-" .. #profile_names .. "): ")
698698
local choice = tonumber(io.read())
699-
699+
700700
if choice and choice >= 1 and choice <= #profile_names then
701701
return profile_names[choice]
702702
else
@@ -707,40 +707,40 @@ end
707707

708708
function main()
709709
print("\n[=== kyber crystal programmer ===]")
710-
710+
711711
-- Get profile from command line argument or prompt user
712712
local profile_name = args and args[1]
713713
if not profile_name then
714714
--print("\nNo profile specified as argument.")
715715
profile_name = select_profile()
716716
end
717-
717+
718718
local data_to_write = get_profile_data(profile_name)
719719
print("\n[+] Using profile: " .. profile_name)
720-
720+
721721
-- Display what will be written
722722
print("\n[+] Data to be written:")
723723
for addr, data in pairs(data_to_write) do
724724
print(string.format("Address %d: %s", addr, data))
725725
end
726-
726+
727727
-- Step 1: Wipe the tag
728728
print("\n[+] Wiping tag...")
729729
send_command("lf em 4x05 wipe --4305")
730-
730+
731731
-- Step 2: Write data
732732
print("\n[+] Writing data...")
733733
for addr, data in pairs(data_to_write) do
734734
send_command("lf em 4x05 write -a " .. addr .. " -d " .. data)
735735
utils.Sleep(0.5)
736736
end
737-
737+
738738
-- Step 3: Read back and display data for verification
739739
print("\n[+] Verifying writes by reading back data...")
740740
for addr, expected_data in pairs(data_to_write) do
741741
local output = send_command("lf em 4x05 read -a " .. addr)
742742
end
743-
743+
744744
print("\n[+] Read complete. Review output above.")
745745
end
746746

client/luascripts/lf_awid_bulkclone.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For more info, check the comments in the code
1010
]]
1111
example = [[
1212
--
13-
script run lf_awid_bulkclone.lua -f 1 -b 1000
13+
script run lf_awid_bulkclone.lua -f 1 -b 1000
1414
]]
1515
usage = [[
1616
script run lf_awid_bulkclone.lua -f facility -b base_id_num
@@ -91,7 +91,7 @@ local function main(args)
9191
end
9292
end
9393
if o == 'b' then
94-
if isempty(a) then
94+
if isempty(a) then
9595
print('You did not supply a starting card number, using 59615')
9696
cn = 59615
9797
else
@@ -105,18 +105,18 @@ local function main(args)
105105

106106
print("Session Start: " .. sessionStart)
107107
print("Facility Code,Card Number")
108-
108+
109109
while true do
110110
print(string.format("Preparing to Write: Facility Code %d, Card Number %d", fc, cn))
111-
111+
112112
local command = string.format("lf awid clone --fmt 26 --fc %d --cn %d", fc, cn)
113113
core.console(command)
114-
114+
115115
print(string.format("%d,%d", fc, cn))
116-
116+
117117
print("Press Enter to continue with the next card number or type 'q' and press Enter to quit.")
118118
local user_input = io.read()
119-
119+
120120
if user_input:lower() == 'q' then
121121
break
122122
else

client/luascripts/lf_electra.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ local function readfile()
145145
local f = io.open(ID_STATUS, "r")
146146
for line in f:lines() do
147147
id = line:match"^(%x+)"
148-
if id then break end
148+
if id then break end
149149
end
150150
f:close()
151151
if not id then

client/luascripts/lf_hid_bulkclone_v2.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ example = [[
1414
script run lf_hid_bulkclone_v2.lua -f 1 -b 1000
1515
]]
1616
usage = [[
17-
script run lf_hid_bulkclone_v2.lua -f facility -b base_id_num
17+
script run lf_hid_bulkclone_v2.lua -f facility -b base_id_num
1818
]]
1919
arguments = [[
2020
-h : this help
@@ -67,7 +67,7 @@ local function exitMsg(msg)
6767
end
6868

6969
local function main(args)
70-
70+
7171
print( string.rep('--',20) )
7272
print( string.rep('--',20) )
7373
print()
@@ -107,7 +107,7 @@ local function main(args)
107107

108108
print("Press Enter to write the next card, type 'r' and press Enter to retry, or type 'q' and press Enter to quit.")
109109
local user_input = io.read()
110-
110+
111111
if user_input:lower() == 'q' then
112112
print("Timestamp: ", timestamp)
113113
print("Successful Writes:")

client/luascripts/lf_ioprox_bulkclone.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ local function exitMsg(msg)
6969
end
7070

7171
local function main(args)
72-
72+
7373
print( string.rep('--',20) )
7474
print( string.rep('--',20) )
7575
print()

client/luascripts/lf_t55xx_fix.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ desc = [[
1818
is found, it uses the wipe command to erase the T5577. Then the reanimation
1919
procedure is applied. If the password is not found or doesn't exist the script
2020
only performs the reanimation procedure. The script revives 99% of blocked tags.
21-
]]
21+
]]
2222
usage = [[
2323
script run lf_t55xx_fix
2424
]]
@@ -87,7 +87,7 @@ local function reanimate_t5577(password)
8787
p:console('lf t55 wipe -p ' .. password)
8888
print("T5577 wiped using a password: " ..ac.green.. password ..ac.reset)
8989
else
90-
print(ac.yellow.."No valid password found, proceeding with reanimation."..ac.reset)
90+
print(ac.yellow.." No valid password found, proceeding with reanimation."..ac.reset)
9191
end
9292

9393
p:console('lf t55 write -b 0 -d 000880E8 -p 00000000')

0 commit comments

Comments
 (0)