-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-install.sh
More file actions
28 lines (26 loc) · 829 Bytes
/
wp-install.sh
File metadata and controls
28 lines (26 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# WP INSTALL MASS SCANNER
# Usage : bash file.sh list.txt
# Coded By VanGans
# https://SadCode.org
checkSite(){
red='\033[0;31m'
cyan='\033[0;36m'
NC='\033[0m'
green='\e[92m'
Green='\e[42m'
target=$1
COUNTER=$((COUNTER+1))
if [[ $(timeout 5 curl -s -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" $target'/wp-admin/install.php') =~ 'English (United States)' ]];
then
printf "${green}[${COUNTER}] => [$target] => OK\n";
echo "$target/wp-admin/install.php" | tee -a valid_wordpess.txt
else
printf "${red}[${COUNTER}] => ${red}$target => NO\n";
fi
}
for target in $(cat $1); do
checkSite $target
done
filter_total=$(cat valid_wordpess.txt | wc -l)
printf "\033[0;36mTotal Valid : $filter_total\n";