-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathraft_downloader
More file actions
executable file
·46 lines (41 loc) · 1.87 KB
/
raft_downloader
File metadata and controls
executable file
·46 lines (41 loc) · 1.87 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
#!/bin/bash
# Banner
echo ""
echo "██████╗ ███████╗████████╗ ██████╗ █████╗ ███████╗████████╗"
echo "██╔════╝ ██╔════╝╚══██╔══╝ ██╔══██╗██╔══██╗██╔════╝╚══██╔══╝"
echo "██║ ███╗█████╗ ██║ ██████╔╝███████║█████╗ ██║"
echo "██║ ██║██╔══╝ ██║ ██╔══██╗██╔══██║██╔══╝ ██║"
echo "╚██████╔╝███████╗ ██║ ██║ ██║██║ ██║██║ ██║"
echo " ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝"
echo ""
# Define the base URL and the list of files to download
BASE_URL="https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Discovery/Web-Content"
FILES=(
"raft-medium-files.txt"
"raft-medium-directories.txt"
"raft-medium-words.txt"
"raft-medium-extensions.txt"
"raft-large-files.txt"
"raft-large-directories.txt"
"raft-large-words.txt"
"raft-large-extensions.txt"
"raft-small-files.txt"
"raft-small-directories.txt"
"raft-small-words.txt"
"raft-small-extensions.txt"
)
# Loop through the files and download them if they don't exist
for file in "${FILES[@]}"; do
if [[ -f "$file" ]]; then
echo "File '$file' already exists."
else
echo "Downloading '$file'..."
curl -s -o "$file" "$BASE_URL/$file"
if [[ $? -eq 0 ]]; then
echo "Downloaded '$file' successfully."
else
echo "Failed to download '$file'."
fi
fi
done
echo "All files downloaded."