Skip to content

Instantly share code, notes, and snippets.

View lucasduete's full-sized avatar
📝
Writing on my devblog

Lucas Duete lucasduete

📝
Writing on my devblog
View GitHub Profile
@lucasduete
lucasduete / dump_socket.sh
Created March 27, 2019 22:55 — forked from jhass/dump_socket.sh
Capture unix socket to pcap file with socat and tshark
#!/bin/bash
# Parameters
socket="/run/foo.sock"
dump="/tmp/capture.pcap"
# Extract repetition
port=9876
source_socket="$(dirname "${socket}")/$(basename "${socket}").orig"