0x01 版本一import socket
from multiprocessing import Pool
# 端口扫描-
def port_scan(ip, port):
# 创建socket对象
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 设置超时时间
s.settimeout(0.1)
# 连接
result = s.connect_ex((ip, port))
# 关闭连接
s.close()
# 判断是否连接成功
...
-
python•2023-03-03• 143Views
python 异步编程 asyncio
-
python•2023-02-24• 180Views
port scan多线程扫描器
-
2023-02-24• 180Views
port scan多线程扫描器
-
2023-03-03• 143Views
python 异步编程 asyncio
-
2023-02-21• 6Views
python安全