Welcome to My Blog KYXRECON Plus+ , My blog is database of Tool's Hacking & all stuff security things & great recource for beginner's & professionals too . . our admins aim collecting exploit's & tools and posting hacking security tutorials & concentrate them in one easy navigate on this database
This site written by Kyxrecon .Use it at your own risk. And i am not responsible for any damage ///
My Hacking Service Price List -> pastebin.com/raw/3kTqdK0T
[!] tor blog is down -> http://kyxroj5ziov3ic7.onion
[!] tor blog is down -> http://kyxroj5ziov3ic7.onion
-::D3SCRIPT1ON
-::D4TE
Simple website directory bruteforcer
This is a simple thing that I made in like 30 minutes to find hidden website directories
Kyxrec0n Code:
import requests
def scan(url, dirs, agent):
existingdirectories = []
notexistingdirectories = []
headers = {'user-agent': agent}
for directory in dirs:
websiteurl = url + "/" + directory
r = requests.get(websiteurl, headers=headers)
if(r.status_code != 404):
existingdirectories.append(websiteurl + (" (Status code: " + str(r.status_code) + ")"))
if(r.status_code == 404):
notexistingdirectories.append(websiteurl)
if existingdirectories:
print("==========Discovered Directories=========== \n")
for existingdirectory in existingdirectories:
print(existingdirectory + "\n")
if notexistingdirectories:
print ("==========Nonexistant Directories (404) =========== \n")
for notexistingdirectory in notexistingdirectories:
print(notexistingdirectory + " \n")
url = input("Enter the website url \n")
dirs = input("enter directories, comma seperated \n")
agent = ""
listdirs = dirs.split(",")
askagent = input("Add a custom user agent? (Y/N) \n")
if askagent == "Y" or "y":
inputagent = input ("Enter user agent")
agent = inputagent
scan(url, listdirs, agent)
Posted by Unknown at 11:25:00 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment