Code Monkey home page Code Monkey logo

wireshark-rfid-dissector's People

Contributors

nicohub avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

playtime2313

wireshark-rfid-dissector's Issues

Lua Error: .. 35: bad argument #1 to 'gfind' (string expected, got nil)

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

Lua Error - ... 38: attempt to concatenate field '?' (a nil value)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.