Created
June 12, 2015 00:22
-
-
Save goodell/afe9e1d874609ed33c66 to your computer and use it in GitHub Desktop.
This file contains 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
define pktdump | |
dump binary memory /tmp/dgoodell-pktdump.bin (char*)$arg0 (((char*)$arg0)+$arg1) | |
!od -Ax -tx1 -v /tmp/dgoodell-pktdump.bin | text2pcap - - | tshark -V -x -i - | |
end | |
document pktdump | |
Dump a network packet in memory with tshark. | |
Example usage: pktdump ADDRESS LENGTH | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment