Skip to content

Commit 5dd2956

Browse files
committed
Add filtering for HTTP vs. HTTPS output file names
1 parent 99414a5 commit 5dd2956

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gobustd.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
url=$1
55
out=$(echo $url | sed 's/https:\/\///;s|\/.*||')
66

7+
# If the URL was not HTTPS, replace $out
8+
if [[ $out =~ ^http.*$ ]]; then out=$(echo $url | sed 's/http:\/\///;s|\/.*||'); fi
9+
710
# SecLists files, symlinked to /root/Web_Content
811
files=/root/Web_Content/raft-large-files-lowercase.txt
912
direc=/root/Web_Content/raft-large-directories-lowercase.txt

0 commit comments

Comments
 (0)