Guest User

Untitled

a guest
Feb 2nd, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2. FIFO_FILE="/tmp/wireshark_extcap_sshdump_fifo_$(date +%Y%m%dT%H%M%S)"
  3. IP="127.0.0.1"
  4. PASSWORD="password"
  5. USERNAME="username"
  6. R_INTF="enp2s0"
  7. OUTFILE="/dev/shm/test"
  8.  
  9. mkfifo "$FIFO_FILE"
  10. /usr/lib/x86_64-linux-gnu/wireshark/extcap/sshdump --capture --extcap-interface sshdump --fifo "$FIFO_FILE" --remote-host "$IP" --remote-password "$PASSWORD" --debug true --remote-sudo true --debug-file /dev/shm/debug.log --remote-username "$USERNAME" --remote-interface "R_INTF" --remote-filter 'not port 22' &
  11. /usr/bin/dumpcap -n -b filesize:50000 -i "$FIFO_FILE" -Z none -w "$OUTFILE"
Add Comment
Please, Sign In to add comment