deeejay

Bash - tshark commands

Jun 17th, 2016
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. Find available interfaces
  2. ===
  3. tshark -D
  4.  
  5. Execute tshark on a specific interface (i.e. interface #2 from results of above)
  6. ===
  7. tshark -i 2
  8.  
  9. Execute unattended tshark scan for 10 seconds (-a = autostop; -w = write to file)
  10. ===
  11. tshark -i 2 -a duration:10 -w 10secs.pcap
  12.  
  13. View 10secs.pcap
  14. ===
  15. type "10secs.pcap" in command prompt
  16.  
  17. Analyze traffic remotely over ssh w/ wireshark
  18. ===
  19. ssh root@server.com 'tshark -f "port !22" -w -' | wireshark -k -i -
Advertisement
Add Comment
Please, Sign In to add comment