-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgobustr.sh
More file actions
executable file
·20 lines (16 loc) · 816 Bytes
/
gobustr.sh
File metadata and controls
executable file
·20 lines (16 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Input URL / Output File
url=$1
out=$(echo $url | sed 's/https:\/\///;s|\/.*||')
# If the URL was not HTTPS, replace $out
if [[ $out =~ ^http.*$ ]]; then out=$(echo $url | sed 's/http:\/\///;s|\/.*||'); fi
# SecLists files, symlinked to /root/Web_Content
files=/root/Web_Content/raft-large-files-lowercase.txt
direc=/root/Web_Content/raft-large-directories-lowercase.txt
words=/root/Web_Content/raft-large-words-lowercase.txt
robot=/root/RobotsDisallowed/Top10000-RobotsDisallowed.txt
# Gobuster
gobuster -u $url -t 25 -s 200 -fw -e -w $direc | tee -a gobust.$out.txt && \
gobuster -u $url -t 25 -s 200 -fw -e -w $words | tee -a gobust.$out.txt && \
gobuster -u $url -t 25 -s 200 -fw -e -w $files | tee -a gobust.$out.txt && \
gobuster -u $url -t 25 -s 200 -fw -e -w $robot | tee -a gobust.$out.txt