w4sp-book / w4sp-lab

Lab environment for the Wireshark for Security Professionals book
https://github.com/w4sp-book/w4sp-lab/wiki/Lab-Installation
71 stars 42 forks source link

Lua with Graphviz Library #10

Open belez76 opened 7 years ago

belez76 commented 7 years ago

Hello!

When I want to run the wirewiz.lua script for making some graph I had an error message - gv. lua can not found.

I've installed Graphviz, make some system environment PATH modification for Graphviz (as the software documentation mentioned it).

The error message:

c:\Program Files\Wireshark>tshark -q -X lua_script:wireviz.lua -i 9 > TEST.svg tshark: Lua: Error during loading: [string "wireviz.lua"]:2: module 'gv' not found: no field package.preload['gv'] no file '\gv.lua' no file 'C:\Users\peter\AppData\Roaming\Wireshark\plugins\gv.lua' no file 'c:\Program Files\Wireshark\plugins\2.2.5\gv.lua' no file 'C:\Users\peter\AppData\Roaming\Wireshark\plugins\cloudshark\gv.lua' no file 'C:\Users\peter\AppData\Roaming\Wireshark\plugins\gv.lua' no file 'c:\Program Files\Wireshark\plugins\2.2.5\gv.lua' no file 'C:\Users\peter\AppData\Roaming\Wireshark\plugins\cloudshark\gv.lua' (....)

I've tested it in Linux as well.

Could you give some hints how should I install Graphviz, or how should it work?

Many thanks for your help: Peter

w4sp-book commented 7 years ago

So it looks like lua can't find the bindings for graphviz. Try installing libgv-lua and see if it works.

sudo apt-get install libgv-lua

pmfortunato commented 6 years ago

Seems I cannot install the requisite module. Has it gone MIA?

root@kali:~# apt-get install libgv-lua Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: libgv-lua 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 78.1 kB of archives. After this operation, 183 kB of additional disk space will be used. Err:1 http://http.kali.org/kali kali-rolling/main amd64 libgv-lua amd64 2.38.0-17+b2 404 Not Found E: Failed to fetch http://http.kali.org/kali/pool/main/g/graphviz/libgv-lua_2.38.0-17+b2_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

NOTE: the --fix-missing does not correct the missing package.

Any thoughts?