-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebProbe.sh
More file actions
139 lines (112 loc) · 3.12 KB
/
Copy pathWebProbe.sh
File metadata and controls
139 lines (112 loc) · 3.12 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash
made_by() {
echo "
Made by:
____ _______ ______ _ ____
| _ \| ____\ \ / / _ \ / \ / ___|
| | | | _| \ \ / /| | | |/ _ \ \___ \
| |_| | |___ \ V / | |_| / ___ \ ___) |
|____/|_____| \_/ |____/_/ \_\____/
GitHub: https://github.com/devdas-gupta/
"
}
made_by
DEFAULT_FILE_WORDLIST="/usr/share/wordlists/dirb/big.txt"
get_domain_info() {
domain=$1
echo "Fetching information for $domain..."
amass intel -d $domain
}
get_ip_address() {
domain="$1"
echo "Getting IP address for $domain..."
ip_address=$(dig +short "$domain")
if [[ $? -ne 0 ]]; then
echo "Failed to get IP address for $domain."
return 1
fi
echo "IP Address: $ip_address"
}
display_domain_info() {
domain=$1
echo "Displaying information for $domain..."
echo "=== Domain Information ==="
whois $domain
echo "=========================="
}
nmap_scan() {
target=$1
scan_type=$2
if [ "$scan_type" = "skip" ]; then
echo "Skipping nmap scan..."
else
echo "Running $scan_type nmap scan for $target..."
case $scan_type in
"normal")
nmap_output=$(nmap -p- -T4 $target)
;;
"aggressive")
nmap_output=$(nmap -p- -T4 -A --script=default,http-enum,ssl-enum-ciphers,vulners $target)
;;
"custom")
echo "Enter custom nmap options (e.g., -p80,443 -sV):"
read -r custom_options
echo "Running custom nmap scan with options: $custom_options"
nmap_output=$(nmap $custom_options $target)
;;
*)
echo "Invalid option. Using normal nmap scan."
nmap_output=$(nmap -p- -T4 $target)
;;
esac
echo "=== Nmap Information ==="
echo "$nmap_output"
echo "========================"
fi
}
scan_directories() {
domain=$1
echo "Running Full Scan for $domain with ffuf..."
ffuf -u "https://$domain/FUZZ" -w $DEFAULT_FILE_WORDLIST -e .html,.php,.asp,.aspx,.txt -of html -o ffuf-report.html
}
main() {
echo "Enter the domain (e.g., example.com):"
read domain
# Run get_domain_info sequentially
get_domain_info $domain
# Display ASCII art and "Made by" message
made_by
# Display domain information
display_domain_info $domain
# Get IP address
get_ip_address $domain
# Choose nmap scan type
echo "Choose nmap scan type (or type 'skip' to skip nmap scan):"
echo "1. Normal Scan"
echo "2. Aggressive Scan"
echo "3. Custom Scan"
read scan_choice
case $scan_choice in
"skip")
scan_type="skip"
;;
1)
scan_type="normal"
;;
2)
scan_type="aggressive"
;;
3)
scan_type="custom"
;;
*)
scan_type="normal"
;;
esac
# Run nmap_scan sequentially
nmap_scan $domain $scan_type
# Run ffuf scan sequentially
scan_directories $domain
echo "Script completed."
}
main