Created
December 19, 2018 08:40
-
-
Save higebu/65c1ea2b77558bfc62390225432e7af5 to your computer and use it in GitHub Desktop.
hex stream to pcap
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/bash | |
hex=$1 # hex stream of packet like 0abcdef... | |
out=$2 # output file name | |
echo "$1" | xxd -r -p - - | od -Ax -tx1 - | text2pcap - $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment