-
Notifications
You must be signed in to change notification settings - Fork 0
/
maskify.sh
66 lines (63 loc) · 2.56 KB
/
maskify.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
# This tool generates Maskify links, helping in URL masking with colorful output for a better user experience.
url_checker() {
if [ ! "${1//:*}" = http ]; then
if [ ! "${1//:*}" = https ]; then
# Display an error message for an invalid URL format
echo -e "\e[31m[⚠ Error]: Invalid URL. Please use http or https.\e[0m"
exit 1
fi
fi
}
clear
echo -e "\n\e[31m┳┳\e[33m┓┏\e[32m┏┓\e[34m┏┓\e[35m┓┏\e[36m┏┓\e[31m┳┏┓┓┏\e[0m"
echo -e "\e[32m┃┃\e[36m┃\e[34m┣┫\e[33m┗┓\e[35m┃┫ \e[31m┃┣ \e[33m┗┫\e[0m"
echo -e "\e[36m┛ \e[34m┗┛\e[32m┗┗\e[33m┛┛\e[35m┗┛┻┻ \e[31m┗┛\e[0m\n"
echo -e "\e[30;48;5;82m Copyright \e[40;38;5;82m CetDev \e[0m \n\n"
echo -e "\e[1;31;42m ### Phishing URL ###\e[0m \n"
echo -e "\e[34m➡ Phishing page domain (HTTP/HTTPS) (include http or https).\e[0m"
read phish
url_checker $phish
sleep 1
clear
echo -e "\e[34m🔄 Processing and Modifying Phishing URL...\e[0m"
echo ""
short=$(curl -s https://is.gd/create.php\?format\=simple\&url\=${phish})
shorter=${short#https://}
clear
echo -e "\n\e[1;31;42m ### Domain Masking ### \e[0m"
echo -e "\e[34m➡ Enter the domain to mask the phishing URL (include http or https).\e[0m"
echo -e "\e[33mExample: \e[36mhttps://google.com\e[33m, \e[36mhttp://anything.org\e[33m.\e[0m"
echo -en "\e[32m✔ Input Domain:\e[0m "
read mask
url_checker $mask
clear
echo -e "\n\e[34m➡ Enter the desired keywords (e.g., \e[36mfree-money\e[34m, \e[36mbest-pubg-tricks\e[34m):\e[0m"
echo -e "\e[31m⚠ Note: Use hyphens '-' instead of spaces between words.\e[0m"
echo -en "\e[32m✔ Input:\e[0m "
read words
if [[ -z "$words" ]]; then
clear
echo -e "\e[31m[⚠ Error]: No input provided.\e[0m"
echo -e "\n\e[34m🔄 Generating Maskify Link...\n\e[0m"
final=$mask@$shorter
# Display the generated Maskify URL in a colorful and professional format
clear
echo -e "\e[34m✔ Here is the Maskify URL: \e[32m${final}\e[0m\n"
exit
fi
if [[ "$words" =~ " " ]]; then
# Display an error message for invalid input and proceed with generating the Maskify link
clear
echo -e "\e[31m[⚠ Error]: Invalid input. Please avoid using spaces.\e[0m"
echo -e "\n\e[34m🔄 Generating Maskify Link...\n\e[0m"
final=$mask@$shorter
# Display the generated Maskify URL in a highlighted and professional format
clear
echo -e "\e[34m🔗 Here is the Maskify URL: \e[32m${final}\e[0m\n"
exit
fi
clear
echo -e "\n\e[34m🔄 Generating Maskify Link...\n\e[0m"
final=$mask-$words@$shorter
clear
echo -e "\e[34m✔ Here is the Maskify URL: \e[32m${final}\e[0m\n"