Browse Source

+interface sniffing script

master
Nico Schottelius 3 years ago
parent
commit
5d62f26cb9
  1. 0
      bin/sniff-host.sh
  2. 17
      bin/sniff-intf.sh

0
p4app/sniff-host.sh → bin/sniff-host.sh

17
bin/sniff-intf.sh

@ -0,0 +1,17 @@
#!/bin/sh
if [ $# -ne 2 ]; then
echo "$0 intf name"
exit 1
fi
set -x
cd ~/master-thesis/pcap
intf=$1
name=$2
now=$(date +%F-%H%M)
filename=${name}-${now}-${intf}.pcap
sudo tcpdump -ni ${intf} -w "${filename}"
Loading…
Cancel
Save