I have a pcap file and a file of regular expressions.
The regular expressions file consists of more than 20 regular expressions like this:
[Pp][Oo][Ss][Tt]
.*fpleq.*po
put{0,1}
.
.
.
Now, I know how to give a single regular expression to check in a pcap file using ngrep.
ngrep -i '[dD][eE][lL][eE][tT][eE] ' -I test.pcap tcp -O p.pcap -q
But if I have to check all the regular expressions altogether then how can I achieve this task?