Skip to content

Commit ff5215a

Browse files
Update bruter.py
避免因-iF指定文件批量扫描域名 超时报错异常未处理导致的程序退出
1 parent d200016 commit ff5215a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/controller/bruter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def scanModeHandler():
414414
for i in payloads.crawl_mode_dynamic_fuzz_temp_dict:
415415
payloads.crawl_mode_dynamic_fuzz_dict.append(urllib.parse.urlparse(i).path)
416416
payloadlists.extend(set(payloads.crawl_mode_dynamic_fuzz_dict))
417-
except requests.exceptions.ConnectionError as e:
417+
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout, requests.exceptions.ReadTimeout) as e:
418418
outputscreen.error("[x] Crawler network connection error!plz check whether the target is accessible")
419419
# sys.exit()
420420

0 commit comments

Comments
 (0)