fix: 去掉不完善的SYN扫描

This commit is contained in:
ZacharyZcR
2025-01-14 13:06:24 +08:00
parent a245934cf2
commit c6c613a17b
3 changed files with 170 additions and 180 deletions
+3 -3
View File
@@ -876,9 +876,9 @@ var (
AddPasswords string // 原PassAdd
// 扫描配置
ScanMode string // 原Scantype
ThreadNum int // 原Threads
UseSynScan bool
ScanMode string // 原Scantype
ThreadNum int // 原Threads
//UseSynScan bool
Timeout int64 = 3
LiveTop int
DisablePing bool // 原NoPing
+1 -1
View File
@@ -109,7 +109,7 @@ func Flag(Info *HostInfo) {
" 服务类: ftp, ssh, telnet, smb, rdp, vnc, netbios\n"+
" 漏洞类: ms17010, smbghost, smb2\n"+
" 其他: findnet, wmiexec, localinfo")
flag.BoolVar(&UseSynScan, "sS", false, "使用SYN扫描替代TCP全连接扫描(需要root/管理员权限)")
//flag.BoolVar(&UseSynScan, "sS", false, "使用SYN扫描替代TCP全连接扫描(需要root/管理员权限)")
flag.IntVar(&ThreadNum, "t", 60, "设置扫描线程数")
flag.Int64Var(&Timeout, "time", 3, "设置连接超时时间(单位:秒)")
flag.IntVar(&LiveTop, "top", 10, "仅显示指定数量的存活主机")