Adding my scripts and writeups to the folder
This commit is contained in:
24
Crimson_Defense/Scripts/dirby/dirby.py
Normal file
24
Crimson_Defense/Scripts/dirby/dirby.py
Normal file
@@ -0,0 +1,24 @@
|
||||
#Dirbuster-like script for sites that always return 301
|
||||
|
||||
import requests
|
||||
|
||||
###CUSTOM VALUES HERE###
|
||||
host = "http://134.122.109.161:31071/"
|
||||
error = "Error 404" #String to blacklist in result
|
||||
outfile = "dirby.out"
|
||||
#Can also change wordlist if desired
|
||||
wordlist = open("/usr/share/wordlists/raft-small-directories.txt")
|
||||
|
||||
session = requests.Session()
|
||||
|
||||
output = open(outfile, "a")
|
||||
|
||||
for line in wordlist:
|
||||
r = session.get(host+line)
|
||||
if error not in r.text:
|
||||
print(line)
|
||||
output.write(line)
|
||||
|
||||
|
||||
output.close()
|
||||
wordlist.close()
|
||||
Reference in New Issue
Block a user