Skip to content

Instantly share code, notes, and snippets.

@marvin-marvin
Last active July 19, 2020 17:56
Show Gist options
  • Save marvin-marvin/451d3729c79822162e8fdf90ff55dca5 to your computer and use it in GitHub Desktop.
Save marvin-marvin/451d3729c79822162e8fdf90ff55dca5 to your computer and use it in GitHub Desktop.
sniff 2 pinbox
#!/bin/bash
# sniff 2 sensor
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
while true
do
/usr/sbin/tcpdump -i lbr0 -s0 -nn -w - | /usr/bin/ssh -i /root/.ssh/id_rsa -o "StrictHostKeyChecking no" [email protected] "/usr/bin/daemonlogger -R - -o eno1 -t 60 -c 4200000"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment