Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET outputpath="C:\test2.csv"
- tshark -r "C:\capture.pcapng" -E separator=, -T fields -e frame.number -e ip.src -e ip.dst_host -e ipv6.src -e ipv6.dst -e eth.src -e eth.dst -e ip.proto -e tcp.srcport -e tcp.dstport -e udp.srcport -e udp.dstport -e _ws.col.Protocol -e _ws.col.Info -E header=y > %outputpath%
- tshark -r "C:\capture.pcapng" -Y "http" | find /c /v "" >> %outputpath%
- tshark -r "C:\capture.pcapng" -Y "dns" | find /c /v "" >> %outputpath%
- tshark -r "C:\capture.pcapng" -Y "tcp" | find /c /v "" >> %outputpath%
- tshark -r "C:\capture.pcapng" -Y "arp" | find /c /v "" >> %outputpath%
- tshark -r "C:\capture.pcapng" -Y "udp" | find /c /v "" >> %outputpath%
- tshark -r "C:\capture.pcapng" -Y "tcp.flags.syn==1 or (tcp.seq==1 and tcp.ack==1 and tcp.len==0 and tcp.analysis.initial_rtt)" | find /c /v "" > temp.txt
- SET /p number=<temp.txt
- SET /A amount=%number%/3
- echo %amount% >> %outputpath%
- PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement