Skip to content

Commit 39ea4d2

Browse files
authored
edited to support capturing on both 443 and 80
"tcp dst port 443 or dst port 80"
1 parent 447200f commit 39ea4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcpdump-capture-headers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tcpdump -A -s 10240 'tcp dst port 8000 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g'
1+
tcpdump -A -s 10240 'tcp dst port 443 or dst port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g'

0 commit comments

Comments
 (0)