GitXplorerGitXplorer
j

wireshark-spdm

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.

No commits found

There are no commits on branch master.

README

The README file for this repository.

This spdm plug in for wireshark

  1. Quick Setup Wireshark Development Environment Refer to https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html.

    set WIRESHARK_PATH = C:\Development\wireshark

  2. Setup spdm plug in development environment

    git clone https://github.com/jyao1/wireshark-spdm.git

    Copy spdm folder to %WIRESHARK_PATH%\plugins\epan.

    git clone https://github.com/jyao1/openspdm.git

    Copy openspdm folder to %WIRESHARK_PATH%.

    Rename %WIRESHARK_PATH%\CMakeListsCustom.txt.example to %WIRESHARK_PATH%\CMakeListsCustom.txt.

    Modify """ set(CUSTOM_PLUGIN_SRC_DIR

    private_plugins/foo

    or

    plugins/epan/foo

    ) """ to """ set(CUSTOM_PLUGIN_SRC_DIR plugins/epan/spdm ) """

  3. Build dependent library

    cd %WIRESHARK_PATH%\openspdm mkdir build cd build cmake -G"NMake Makefiles" -DARCH=X64 -DTOOLCHAIN=VS2019 -DTARGET=Debug -DCRYPTO=<MbedTls|Openssl> -DTESTTYPE=WireShark .. nmake

  4. Build Wireshark and plugin Refer to chapter 2.2.13 of https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html.

  5. Install WinPcap and Npcap https://www.winpcap.org/install/default.htm https://nmap.org/npcap/

  6. Capture SPDM communication data Excute Wireshark refer to https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html.

    Choose "Adapter for loopback traffic capture" > Input "spdm" in filter frame

    Wireshark start to capture data.