-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwsc.sh
executable file
·73 lines (69 loc) · 1.38 KB
/
wsc.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
set -e
# source /path/to/helper.sh
source helper.sh
if ! [ -z $1 ]; then
case $1 in
'-h' | '--help')
help-list
;;
'-l' | '--link')
if [ -z $2 ]; then
echo "please argue file list."
else
hacked-check $2
fi
;;
'-d' | '--domain')
web-checker $2
;;
esac
else
echo -e ""
echo -e "..::[ welcome2 website checker ]::.."
echo ""
echo -e "--option:"
echo -e "1. scan website"
echo -e "2. list hacked website"
echo -e "3. list down website"
echo -e "4. reset log"
echo -e "q. quit"
echo -e "--ctrl+c to quit~"
echo ""
echo -ne "choise#::> "; read choise
main () {
choise=$1
if [ -z $choise ]; then choise=9; fi
case $choise in
"1")
echo -n "do you have a website list yet [y/n] : "; read ans
case $ans in
"y")
echo -n "tell me where is it : "; read path
hacked-check $path
;;
"n")
echo "default system will scanning ./domain.list file."
hacked-check domain.list
;;
esac
;;
"2") list-hacked ;;
"3") list-down ;;
"4") reset-weblog ;;
"q" | "Q")
echo "tanks for using :> "
echo "../kankuu\.."
exit
;;
*)
echo ""
echo -e "choise right answer!"
echo ""
;;
esac
echo -ne "-----!!choise#::_> "
read choiseN; main $choiseN
}
main $choise
fi