TEXT2PCAP(1) TEXT2PCAP(1) (NAME) text2pcap - ASCII (SYNOPSIS) text2pcap [ -a ] [ -b 2|8|16|64 ] [ -D ] [ -e ] [ -E ] [ -F ] [ -i ] [ -l ] [ -N ] [ -m ] [ -o hex|oct|dec|none ] [ -q ] [ -r ] [ -s ,, ] [ -S ,, ] [ -t ] [ -T , ] [ -u , ] [ -4 , ] [ -6 , ] [ --little-endian ] |- |- text2pcap -h|--help text2pcap -v|--version (DESCRIPTION) Text2pcap ASCII . text2pcap . Text2pcap Ethernet IP UDP TCP SCTP (application-level) . Text2pcap . -F text2pcap -F . outfile pcapng . Text2pcap --compress . outfile '.gz' gzip . Text2pcap . Wireshark Packet Bytes tshark --hexdump od -Ax -tx1 -v hexdump -X -v . (offset) NUL ('\0') . . Text2pcap . . . - -o . 0x 0X . . . -o . ( (wrap) ). ( regex ) . . (big-endian) --little-endian little-endian . ('I' 'O') / ( -D -t ) . . -t . . . '>'. ASCII ( -a ASCII ). '#' . '*' NUL ('\0') . (preamble) . #TEXT2PCAP (directive) text2pcap . . text2pcap ( ) . text2pcap : I 2019-05-14T19:04:57Z 000000 00 0e b6 00 00 02 00 0e b6 00 00 01 08 00 45 00 000010 00 28 00 00 00 00 ff 01 37 d1 c0 00 02 01 c0 00 000020 02 02 08 00 a6 2f 00 01 00 01 48 65 6c 6c 6f 20 000030 57 6f 72 6c 64 21 000036 Text2pcap Perl (PCRE) . text2pcap ( '\n' ) . (named capturing subgroups) . regex : "data" "time" "dir" "seqno" 'data' : () base64 . 'time' -t . 'dir' (inbound) (outbound) "iI<" "oO>" . 'seqno' . ( pcapng pcap ). regex '^(?[<>])\s(?