Advertisement
Guest User

remote capturing

a guest
Aug 21st, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. pipeFile="/tmp/captured_traffic_pipe"
  4.  
  5. rm -f $pipeFile
  6. mkfifo $pipeFile
  7. ssh -p 2200 pi@192.168.1.150 'sudo tcpdump -s 0 -U -n -w - -i eth1' > $pipeFile
  8. wireshark -k -i $pipeFile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement