#!/bin/bash # Writen by Jose Manuel Cano Garcia # Departamento de Tecnologia Electronica # ETSI Telecomunicacion. Campus de Teatinos # Universidad de Malaga # 29071 Spain # mailto: cano@dte.uma.es # http://www.dte.uma.es # for fichero do tcpdump -n -r $fichero -w http_1_$fichero "((dst port 80 and tcp[1] & 1 !=0) or (src port 80 and tcp[3]&1!=0))";tcptrace2 -n -r http_1_$fichero > ./http_1_$fichero.tra; rm http_1_$fichero; zip http_1_$fichero.zip http_1_$fichero.tra; rm http_1_$fichero.tra; tcpdump -n -r $fichero -w http_0_$fichero "((dst port 80 and tcp[1] & 1 !=1) or (src port 80 and tcp[3]&1!=1))";tcptrace2 -n -r http_0_$fichero > ./http_0_$fichero.tra; rm http_0_$fichero; zip http_0_$fichero.zip http_0_$fichero.tra; rm http_0_$fichero.tra; tcpdump -n -r $fichero -w nohttp_$fichero tcp and not port 80; tcptrace2 -n -r nohttp_$fichero > ./nohttp_$fichero.tra; rm nohttp_$fichero; zip nohttp_$fichero.zip nohttp_$fichero.tra; rm nohttp_$fichero.tra; rm $fichero done