diff --git a/wireshark/binaries/linux/4.4.0/ja4.so.linux b/wireshark/binaries/linux/4.4.0/ja4.so.linux new file mode 100755 index 0000000..07c325d Binary files /dev/null and b/wireshark/binaries/linux/4.4.0/ja4.so.linux differ diff --git a/wireshark/binaries/macos/4.4.0/arm/ja4.so.macos b/wireshark/binaries/macos/4.4.0/arm/ja4.so.macos new file mode 100755 index 0000000..b43417b Binary files /dev/null and b/wireshark/binaries/macos/4.4.0/arm/ja4.so.macos differ diff --git a/wireshark/build-scripts/linux_build.sh b/wireshark/build-scripts/linux_build.sh index 2a66bf4..47e4599 100755 --- a/wireshark/build-scripts/linux_build.sh +++ b/wireshark/build-scripts/linux_build.sh @@ -11,16 +11,26 @@ if [ -x $VER ] then echo "Enter a wireshark version (supported versions) => 4.0.3, 4.0.6, 4.0.10, 4.2.0"; exit fi -echo "fetching wireshark sources with tag => tags/wireshark-$VER" -git clone -o upstream --branch wireshark-$VER https://gitlab.com/wireshark/wireshark.git --depth=5000 -mv wireshark wireshark-$VER +if [ ! -d wireshark-$VER ] +then + echo "fetching wireshark sources with tag => tags/wireshark-$VER" + git clone -o upstream --branch wireshark-$VER https://gitlab.com/wireshark/wireshark.git --depth=5000 + mv wireshark wireshark-$VER +fi + cd wireshark-$VER git checkout tags/wireshark-$VER - -cp -r ../../linux ./plugins/epan/ja4 +cp -r ../../source ./plugins/epan/ja4 mv CMakeListsCustom.txt.example CMakeListsCustom.txt sed -i "/plugins\/epan\/foo/c\plugins\/epan\/ja4" CMakeListsCustom.txt -mkdir build && cd build && cmake -G Ninja -DBUILD_wireshark=off ../ +./tools/debian-setup.sh + +if [ ! -d build ] +then + mkdir build +fi + +cd build && cmake -G Ninja -DBUILD_wireshark=off ../ echo 'building using ninja...' ninja -j8