Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FIFO_FILE="/tmp/wireshark_extcap_sshdump_fifo_$(date +%Y%m%dT%H%M%S)"
- IP="127.0.0.1"
- PASSWORD="password"
- USERNAME="username"
- R_INTF="enp2s0"
- OUTFILE="/dev/shm/test"
- mkfifo "$FIFO_FILE"
- /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' &
- /usr/bin/dumpcap -n -b filesize:50000 -i "$FIFO_FILE" -Z none -w "$OUTFILE"
Add Comment
Please, Sign In to add comment