-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmassgit.sh
39 lines (32 loc) · 920 Bytes
/
massgit.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
#!/bin/bash
# Function to run github-subdomains on a domain
run_github_subdomains() {
domain=$1
# Construct the command
command="github-subdomains -d $domain -raw"
# Run the command
$command
}
# Function to process domains from a file
process_domains_from_file() {
file_path=$1
# Read the list of domains from the file
while IFS= read -r domain || [ -n "$domain" ]; do
# Run github-subdomains for the current domain
run_github_subdomains "$domain"
# Wait for 10 seconds before moving to the next domain
sleep 10
done < "$file_path"
}
# Check if the wordlist file is provided as a command-line argument
if [ $# -ne 1 ]; then
echo "Usage: $0 <wordlist_file>"
exit 1
fi
# Check if the provided file exists
if [ ! -f "$1" ]; then
echo "File not found: $1"
exit 1
fi
# Process domains from the file
process_domains_from_file "$1"