mirror of
https://github.com/Jerryplusy/AI-powered-switches.git
synced 2025-10-14 09:49:19 +00:00
修改
This commit is contained in:
parent
7030adb81c
commit
ed50ed2fb2
@ -21,7 +21,9 @@ class NetworkScanner:
|
|||||||
# 扫描开放22(SSH)或23(Telnet)端口的设备
|
# 扫描开放22(SSH)或23(Telnet)端口的设备
|
||||||
self.nm.scan(
|
self.nm.scan(
|
||||||
hosts=subnet,
|
hosts=subnet,
|
||||||
arguments="-p 22,23 --open -T4"
|
arguments="-p 22,23 -Pn -T4 --packet-trace --disable-arp-ping",
|
||||||
|
timeout=5
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
devices = []
|
devices = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user