Created
September 18, 2013 21:48
-
-
Save agleyzer/6616242 to your computer and use it in GitHub Desktop.
a script to log http connections...
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
#!/bin/bash | |
ts=$(date +%Y%m%d-%H%M%S) | |
tcpdump -A -s 1492 -l \ | |
'host blahblah and tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' \ | |
| grep HTTP -C 10 > httpdump-${ts}.log 2>&1 & | |
disown %1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment