Thereafter, it was simply "make" to build Wireshark and "sudo make install". It is therefore possible to attach a packet sniffer such as Wireshark to the host interface and log all traffic that goes over it. DLUA_INCLUDE_DIR=/mypath/lua-5.2.4/install/include -DLUA_LIBRARIES=/mypath/lua-5.2.4/install/lib/liblua.a -DLUA_LIBRARY=/mypath/lua-5.2.4/install/lib/liblua.a -DENABLE_LUA=ON It does not pick up the available Lua, so I needed to point it to my local build:Ĭmake. I downloaded the sources for Wireshark 3.5.4 to my RHEL 8.3 machine, unpacked them, changed to the source directory and ran "cmake. ![]() En Ubuntu, puedes instalarlo con el comando: sudo apt install tshark Usando Tshark. The "make local" does not copy that library, so I solved it using "cp src/liblua5.2.4.so install/lib/". Tshark es automáticamente en CentOS 7 cuando se instala wireshark. It builds a shared libary liblua5.2.4.so when using this command: ![]() $(RANLIB) -shared -ldl -Wl,-soname,liblua$R.so -o liblua$R.so $? -lm $(MYLDFLAGS) Extending this block in the Makefile by the last line did the trick: My Lua was not compiled in the right way, I needed a shared library. usr/bin/ld: /mypath/lua-5.2.4/install/lib/liblua.a(lstate.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object recompile with -fPIC But later, after configuring the Wireshark build to pick up Lua, I ran into this error: The latest version of Tshark 3.4 includes a number of useful new features. Because I don’t want to be boring, and just want to give a perspective about Tshark that is command-line Wireshark tool. "make local" created a local install directory which I hoped to use with Wireshark. Wireshark or Tshark has many many features and options. Thereafter, "make" and the correct "make linux" resulted the compiled files. So, let's get going.Īfter some research I started by downloading Lua 5.2.4 from the Lua website. And RHEL either has version 5.3 or 5.1 which both are incompatible (long story). Compiling Wireshark on my RHEL 8.3 does not simply work because it requires Lua version 5.2 for my scripts to work. Unfortunately, the install package for Red Hat Enterprise Linux does not include Lua support. Lua is a scripting language and a supported way of adding dissectors in Wireshark. Dissectors are useful to turn binary garbage into readable TCP or UDP packet content. P.S : WinPCap is apparently going to come out with a new version soon that is compatible with Windows 7.What do you do on a rainy public holiday with COVID19 restrictions in place? Finally get Wireshark to work with Lua support to have custom dissectors. This will allow all users on the machine to use Wireshark without admin privileges.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |