Ask Your Question

jeskudero's profile - activity

2021-12-30 09:40:26 +0000 received badge  Famous Question (source)
2020-06-23 16:28:54 +0000 received badge  Notable Question (source)
2020-06-23 16:28:54 +0000 received badge  Popular Question (source)
2019-03-12 15:12:41 +0000 marked best answer Plugin compiling problems

Hello

I'm trying to compile the s7comm_plus dissector in ubuntu 18, and i'm having problems to get it work. i gonna try to describe the process that i followed:

1- download wireshark 3.0 source code.

2- put s7comm_plus folder into wireshark3.0/plugins/epan/

3- chage some lines in CMakeLists.txt:

  • Add this 2 lines: "include(WiresharkPlugin)" and "cmake_minimum_required(VERSION 3.10)"
  • Change line: "register_dissector_file" by "register_plugin_files"

4- mkdir build && cd build

5- cmake ../wireshark 3.0

6- make (and here comes the problem). It compiles well all the wireshark files except the dissector.

Traceback (most recent call last): File "/home/josu/Descargas/wireshark-3.0.0/tools/make-plugin-reg.py", line 78, in <module> contents = file.read()
File "/usr/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 1239: invalid start byte
plugins/epan/s7comm_plus/CMakeFiles/s7comm_plus.dir/build.make:62: recipe for target 'plugins/epan/s7comm_plus/plugin.c' failed
make[2]: *** [plugins/epan/s7comm_plus/plugin.c] Error 1 CMakeFiles/Makefile2:13896: recipe for target 'plugins/epan/s7comm_plus/CMakeFiles/s7comm_plus.dir/all' failed
make[1]: *** [plugins/epan/s7comm_plus/CMakeFiles/s7comm_plus.dir/all] Error 2 Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Any suggestions? Thanks!

2019-03-12 15:12:41 +0000 received badge  Scholar (source)
2019-03-12 15:12:20 +0000 commented answer Plugin compiling problems

Definitely it was my fault, I've downloaded again the files and I've compiled them without problem. Thanks

2019-03-12 15:01:07 +0000 commented answer Plugin compiling problems

Ok, so the problems is in my Linux distro. I read a lot about the "UnicodeDecodeError: 'utf-8' codec can't decode byte 0

2019-03-12 14:59:36 +0000 commented question Plugin compiling problems

Yes, the s7comm implemented in wireshark is an old one. Siemens has updated the protocol and now is called s7comm_plus.

2019-03-12 11:37:36 +0000 edited question Plugin compiling problems

Pluging compilig problems Hello I'm trying to compile the s7comm_plus dissector in ubuntu 18, and i'm having problems t

2019-03-12 11:37:23 +0000 received badge  Editor (source)
2019-03-12 11:37:23 +0000 edited question Plugin compiling problems

Pluging compilig problems Hello I'm trying to compile the s7comm_plus dissector in ubuntu 18, and i'm having problems t

2019-03-12 11:36:44 +0000 asked a question Plugin compiling problems

Pluging compilig problems Hello I'm trying to compile the s7comm_plus dissector in ubuntu 18, and i'm having problems t