12 lines
160 B
Bash
12 lines
160 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -x
|
||
|
host=$1
|
||
|
name=$2
|
||
|
|
||
|
now=$(date +%F-%H%M)
|
||
|
filename=${now}-${name}-${host}.pcap
|
||
|
intf=${host}-eth0
|
||
|
|
||
|
mx "$host" tcpdump -ni ${intf} -w "${filename}"
|