Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sensitive(domain,filename):
- print("Checking for files that may hold sensitive information...\n")
- time.sleep(5)
- pages = ['/sitemap.xml', '/robots.txt', '/.svn', '/.git', '/.htpasswd', '/.htaccess']
- part3 = []
- for page in pages:
- r = requests.get('http://' + domain + page)
- if r.status_code == 200:
- result = (page + " found!")
- else:
- print("not found")
- FOR LOOP ^^^
- remove the colon after pages: and change "else:" to "eles;" -
- change the order of a few lines to mess it up more
- correct code is one above
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement