Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.89 KB | None | 0 0
  1. SET outputpath="C:\test2.csv"
  2. 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%
  3.  
  4. tshark -r "C:\capture.pcapng" -Y "http" | find /c /v "" >> %outputpath%
  5. tshark -r "C:\capture.pcapng" -Y "dns" | find /c /v "" >> %outputpath%
  6. tshark -r "C:\capture.pcapng" -Y "tcp" | find /c /v "" >> %outputpath%
  7. tshark -r "C:\capture.pcapng" -Y "arp" | find /c /v "" >> %outputpath%
  8. tshark -r "C:\capture.pcapng" -Y "udp" | find /c /v "" >> %outputpath%
  9.  
  10. 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
  11. SET /p number=<temp.txt
  12. SET /A amount=%number%/3
  13. echo %amount% >> %outputpath%
  14. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement