
23.08.2015, 02:31
|
|
Познающий
Регистрация: 11.06.2015
Сообщений: 34
Провел на форуме: 9881
Репутация:
1
|
|
В итоге сам выявил в говнокоде ошибку, теперь нормально сканит, кому надо берите)
.SpoilerTarget" type="button">Spoiler
[CODE]
#!/bin/bash
if [ "$EUID" -ne 0 ]
then
echo -e "\e[1;31m Run as root \e[0m"
exit
fi
printf "\rEnter filename:"
read ip_addr_file
if [ ! -f "$ip_addr_file" ]
then
echo -e "\e[1;31m File $ip_addr_file does not exist \e[0m"
exit
fi
do_masscan(){
temp_count_=0
while read line
do
temp_count_=$((++temp_count_))
done > $save_ass
cat $temp_name_masscan | grep 'ProFTPD 1.3.5rc3' | awk '{print $3}' | tr -d '",'>> $save_ass
temp_file_sed=$(echo $temp_name_cat | md5sum | sed 's/...$//')
sed -e "1,$grep_" $temp_name_cat >> $temp_file_sed
mv $temp_file_sed $temp_name_cat
echo -e "\e[0;32m $read_count scanned of total $count_all \e[0m"
if [ "$temp_count_" -le "0" ]
then
scan_finished
else
do_masscan
fi
}
scan_finished(){
iptables -D INPUT -p tcp --dport $free_port -j DROP
echo
echo -e "[ \e[0;32m Done \e[0m ]"
echo
while read -r save_ass
do
count_all=$((++count_total))
done
Некорректно выводятся информационные сообщения, но работает
|
|
|