11 lines
160 B
Bash
Executable file
11 lines
160 B
Bash
Executable file
#!/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}"
|