Last active
February 27, 2017 00:49
-
-
Save raviprakashgiri/7fe6b372c576c181a16b2fb0d16dc870 to your computer and use it in GitHub Desktop.
find a string in a pcap
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 | |
value=`cat adult.txt` # files from which string input has been taken | |
for i in ${value[@]}; do tshark -r test.pcap -T fields -e ip.src -e ip.dst -e data |\ | |
grep `echo -n $i | xxd -p` |\ | |
cut -f 1| uniq > $i; echo $i; done# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment