Repository del corso di Network Security, corso del percorso formativo in Cybersecurity del CdL Magistrale in Ingegneria Informatica presso l'Università degli Studi di Napoli Federico II, tenuto dal professore Romano
- git clone https://github.com/libssh/libssh-mirror.git
- replace the kex.c file in /libssh-mirror/src with the one in the folder client
- cd libssh-mirror && mkdir build && cd build
- cmake ../ -DWITH_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DWITH_STATIC_LIB=ON
- make compile client.c linking the static libssh.a file:
- gcc -I/.../libssh-mirror/include -I/.../libssh-mirror/build/include client.c /.../libssh-mirror/build/src/libssh.a -lssh -lrt -lcrypto -lz -lpthread -ldl -o client
- sudo apt-get install liblua5.2-dev
- sudo apt-get install libssl-dev
- git clone --recurse https://github.com/zhaozg/lua-openssl.git lua-openssl : great lib used to bind the plugin to openssl for the decryption
- cd lua-openssl
- make LUA_CFLAGS=-I/usr/include/lua5.2
- mv the openssl.so in the folder usr/lib/lua/5.2 dir (if doesn't exist create it)
- move the ssh_postdissector.lua and the ssh_postdissector folder to the custom lua plugin folder of wireshark (you can find it in wireshark->help->informations->folders->personal lua plugins)
- reload lua plugins (analyze->reload lua plugins)
- you can enable the dissector and configure the session keys in the preference tab (SSH_Payload protocol)