def directory_brute(self):
'''
???????????
:return:
'''
while not self.queue.empty():
_dir = self.queue.get()
for target in self.targets:
try:
url = target + _dir
self.count += 1
sys.stdout.write('\r?????: ' + str(self.count))
sys.stdout.flush()
r = requests.get('http://' + target + _dir, allow_redirects=False)
if r.status_code in [200, 403]:
self.sensitive[url] = r.status_code
except requests.exceptions.ReadTimeout:
continue
except requests.exceptions.ConnectionError:
continue
except requests.exceptions.TooManyRedirects:
continue
评论列表
文章目录