Update dirgenerate.py

main
witchdocsec 2023-06-13 17:24:08 +01:00 committed by GitHub
parent 0f90a84ac6
commit f3158e761d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -5,8 +5,11 @@ import tldextract
with open("banner.txt","r") as banner:
print(banner.read())
site = input("Enter site name: ")
keywords = "site:{} +filetype:TXT +inurl:\"robots.txt\"".format(site)
site = input("robots of (leave blank for all results): ")
if site != "":
keywords = "site:{} +filetype:TXT +inurl:\"robots.txt\"".format(site)
else:
keywords = "filetype:TXT +inurl:\"robots.txt\""
results = DDGS().text(keywords)
dirs=[]
for result in results: