nicohub / wireshark-rfid-dissector Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi,
it get following Error:
Lua Error: [string "D:\Tools\WiresharkPortable\App\Wireshark\plug..."]:38: attempt to concatenate field '?' (a nil value)
on the following Packet:
Length: 109
Data:
00ff635fa54894fdfaf5dbd7af5fbf7edeb1eef5fb57af5d...Data HexDump (without Header):
0000 00 ff 63 5f a5 48 94 fd fa f5 db d7 af 5f bf 7e ..c_.H......._.~
0010 de b1 ee f5 fb 57 af 5d b3 69 ce 95 3e 6d 2b 96 .....W.].i..>m+.
0020 6c d9 af 66 d2 9f 46 7d 1b f6 ec d5 3c cb 1a 6d l..f..F}....<..m
0030 4a 85 1a 34 2d 53 a4 49 c5 62 5a e5 00 00 00 00 J..4-S.I.bZ.....
0040 bf 7f f8 df fa cd 2a f1 60 5d 83 5a 00 00 00 00 ......*.`].Z....
0050 30 30 44 00 00 4e e7 e2 80 00 00 00 03 03 00 23 00D..N.........#
0060 f7 20 44 11 30 . D.0
It seems that the string-representation of 'data" is truncated and '...' is added.
Because this string has non-hexadecimal-chars, the function Hex2Bin(s) fails.
I suggest to change the Regex on Line 36 to find only hexadecimal-chars
original:
for i in string.gfind(s, ".")
change to
for i in string.gfind(s, "[0-9a-f]")
Best regards,
Joerg
Hi,
i run in the following error:
Lua Error: .. 35: bad argument #1 to 'gfind' (string expected, got nil)
That's because some of my captured packets have no data inside ...
Possible Workaround:
function Hex2Bin(s) --s -> hexadecimal string
local ret = ""
if s ~= nil then
local i = 0
for i in string.gfind(s, "[0-9a-f]") do
i = string.lower(i)
ret = ret..hex2bin[i]
end
end
return ret
end
Best regards,
Joerg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.