We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e90f9 commit b785e23Copy full SHA for b785e23
README.md
@@ -33,7 +33,7 @@ lock = threading.Lock()
33
def Scan(port):
34
try:
35
conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
36
- conn.settimeout(2)
+ conn.settimeout(3) # 3秒的话,大概1k端口47秒,2秒则是1k端口33秒,延时越大越不容易漏但时间越长
37
res = conn.connect_ex((str(ip), int(port)))
38
if res == 0:
39
# 将结果添加到当前线程局部变量中
0 commit comments