Created
December 17, 2019 11:01
-
-
Save fritschy/ddb2af5ed4fbeef64535d669a24a64e3 to your computer and use it in GitHub Desktop.
How to disassemble a pcap BPF program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
( | |
echo -n load bpf "" | |
sudo tcpdump -ilo -ddd "$@" | tr '\n' ',' | |
echo | |
echo disassemble | |
) | bpf_dbg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment