-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGV.sh
113 lines (96 loc) · 7.52 KB
/
GV.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
# Function to print colored text
print_color() {
color=$1
text=$2
echo -e "${color}${text}\e[0m"
}
# Function to display ASCII art for tool name
display_ascii_art() {
cat << "EOF"
⠀
⠀⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣮⣿⣿⣮⣽⣿⣿⣿⣿⣿⣟⣿⣿⣿⣿⣟⡿⣷⡄⠀⠀⠀
⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⡿⠋⠉⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡾⣿⣿⣿⣿⠟⢻⣿⣿⣿⣿⡄⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣿⣿⣿⣿⣿⣇⠀⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⡿⠟⠾⢿⣿⠿⣿⣿⣿⣿⣇⣸⣿⣿⣿⣿⣽⣆⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡿⣿⣿⣟⣿⡏⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⡟⣿⡀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣿⣿⣿⣿⣿⣿⣿⣿⡼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡝⠁⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⡇⣿⡇
⣿⣿⣽⣿⣿⣿⣿⣿⣿⣿⣿⢟⣯⣿⣿⣿⣿⡿⣿⢹⣿⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣇⣿⡇
⣿⣽⣿⣿⣽⣿⡿⣿⣿⢯⣾⠟⣩⣾⣿⣿⣿⣽⣟⣾⡏⠈⠓⠿⣿⣿⣿⠿⠿⠿⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣽⣿⡇
⢳⣿⣏⣹⣿⡿⣹⣿⣿⡿⢗⢕⣿⣿⣿⣿⣿⡿⢰⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠲⠾⣿⣿⣿⡇
⣿⠙⡞⢻⣿⣵⣻⡟⣩⣡⣿⣿⣿⣿⣿⣿⣿⣯⡾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⡇
⣿⢸⡇⣾⣷⣿⣟⣽⢟⣵⡋⣨⣼⣿⣿⣿⣟⣸⡇⠀⠀⠀⠀⢀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⡟⣷
⣿⣸⣿⣿⣿⣿⡿⢫⣾⣿⣿⣿⣿⣿⣿⡿⠓⣿⠀⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠓⠒⠒⠒⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⠴⠒⢚⣿⠁⣿
⣿⣿⣿⣿⣿⣿⣵⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⡟⠀⠀⠀⠀⠀⠀⠀⠀⣀⡴⠾⠓⠲⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠖⠋⠉⠁⠀⠀⠀⠀⣼⡇⠀⡿
⣿⣿⣿⡟⠁⡴⠷⣄⠙⢿⣿⣿⣿⣿⠀⠀⠀⣷⠀⠀⠀⠀⢀⣠⠞⠋⣀⣀⣀⣀⣀⡠⠟⠀⠀⠀⠀⠀⠀⠰⣄⠀⡞⠁⢀⡠⠴⠦⣀⠀⠀⢀⣿⡇⢠⡇
⣿⣿⣿⠀⠘⣇⠀⠈⠳⡄⠹⣿⣿⡇⠀⠀⠀⣿⡀⠀⠀⠴⢋⣡⣶⣿⡿⠿⠿⠿⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⢹⠀⡇⠞⢉⣀⣤⣤⣈⡳⠀⣸⠉⣿⣼⠃
⣿⣿⣿⡀⠀⠉⠙⢦⣀⠹⡄⠘⣿⡇⠀⠀⠀⢹⣧⠀⠀⢴⣾⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡆⡇⠰⠟⠛⠛⠛⠻⣇⠀⡇⠀⢹⣿⠀
⣿⣿⣿⣧⠀⠀⢠⡤⠯⣭⡇⠀⢹⡇⠀⠀⠀⠈⢻⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣧⢱⠀⠀⠀⠀⠀⠀⠀⢰⠃⠀⢸⢿⠀
⣿⣿⣿⣿⣆⠀⠈⢧⠀⠰⣇⠀⠀⣿⠀⠀⠀⠀⠀⢿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⠘⡆⠀⠀⠀⠀⠀⠀⡟⠀⠀⡇⢸⡇
⣿⣿⣿⣿⣿⣷⣄⠈⠙⠢⣬⣍⣛⣻⡄⠀⠀⠀⠀⠀⢻⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡇⢿⠀⠀⠀⠀⠀⢸⠁⠀⡾⠀⢸⠃
⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⣀⣀⣉⣀⢷⠀⠀⠀⠀⠀⠀⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡽⠛⠀⠀⠀⠀⢀⡏⠀⢸⠁⢠⠏⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠉⠛⣦⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠋⠉⠚⠁⠀⠀⠀⠀⠀⠀⡾⠁⠀⣸⣰⠏⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠈⢷⡀⠀⠀⣴⠟⠀⠀⠀⠀⠀⠀⣦⣤⣤⣤⣤⣤⣤⣤⣄⣀⣤⣄⣀⣠⡄⠀⠀⠀⠀⣸⠁⠀⠀⣸⡟⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⢳⣤⠼⠋⠀⠀⠀⠀⠀⠀⠀⠀⠉⠳⢤⣀⣀⣀⣀⣀⣀⣀⣠⠼⠋⠀⠀⠀⠀⣸⠃⠀⠀⠀⣿⠀⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠈⢿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢉⡛⠛⠛⠛⠉⣀⡄⠀⠀⠀⠀⣰⠃⠀⠀⠀⠀⡏⠀⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠈⢿⣽⣷⣦⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠒⠒⠊⠁⠀⠀⠀⠀⣴⡇⠀⠀⠀⠀⠀⢹⡆⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣴⣖⣒⡆⠀⠈⢻⣿⡯⣿⣿⢷⣦⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⢿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣿⡿⢿⡞⠃⠀⠀⠈⢿⣷⣧⣿⣾⣿⢸⣿⣿⣷⢶⣤⣀⡀⠀⠀⠀⠀⠀⣀⣴⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣋⣹⡆⠀⠀⠀⠀⠙⣿⡿⣿⣿⢸⣿⣿⣿⣾⣿⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿⢹⣿⣿⡀⠀⠀⠀⠀⢀⠀⠀⠀⠀
⣿⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠳⡞⠁⠀⠀⠀⠀⠀⠘⢳⣿⣿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢸⡏⣿⣇⠀⢀⣠⣶⣿⣿⡿⠂⠀
⡿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣏⣭⣧⠀⠀⠀⠀⠀⠀⠈⢿⣿⣼⣿⣿⣿⡷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣣⣼⣿⣶⣿⣿⣿⣿⣛⡄⠀⠀
⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣏⡹⢧⡄⠀⠀⠀⠀⠀⠀⠀⠹⣿⡿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢯⡁⠀⠀
⣿⣿⣿⡿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡷⣾⠃⠀⠀⠀⠀⠀⠀⠀⠀⠈⠃⣿⣿⡇⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡋⠁⠀⠀
⣿⣿⢟⣘⣯⣶⣶⣶⣿⣷⣿⡿⣿⣿⣿⣿⣿⣛⣷⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠟⠣⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠟⠀⠀⠀
⣿⣷⣿⣿⣿⣿⠿⠿⠿⢛⣯⣶⣾⣿⣿⣿⣿⣟⡿⢤⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠃⠛⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣷⠀⠀⠀
___________ ____
/ _____\ \ / /
| | __ \ \/ /
| | |_ | \ /
| |__| | \ /
\______| \__/
+-------------------------------------------------------+
| |
| GVortex - Openredirection scanner |
| Author: Ajansha Shankar |
| LinkedIn: Ajansha Shankar |
| GitHub: https://github.com/ajansha |
+-------------------------------------------------------+
EOF
}
# Function to perform scanning for a single domain
scan_single_domain() {
read -p "Enter the domain name: " domain
response_headers=$(curl -s -I "$domain")
if echo "$response_headers" | grep -qE "Location: .*$domain"; then
print_color "\e[1;31m" "Vulnerable: Open redirection detected"
else
print_color "\e[1;32m" "Not Vulnerable: No open redirection detected"
fi
}
# Main function
main() {
display_ascii_art
print_color "\e[1;33m" "Welcome to the GV scanner"
print_color "\e[1;33m" "----------------------------------"
print_color "\e[1;33m" " "
while true; do
print_color "\e[1;34m" "Select an option:"
print_color "\e[1;34m" "1. Scan domain"
print_color "\e[1;34m" "2. Exit"
read -p "Option: " option
case $option in
1)
scan_single_domain
;;
2)
print_color "\e[1;31m" "Exiting(Varata mame durr:))"
exit 0
;;
*)
print_color "\e[1;31m" "Invalid option. Please select a valid option."
;;
esac
done
}
# Calling main function
main