新增rdp扫描,新增添加端口参数-pa 3389(会在原有端口列表基础上,新增该端口)

This commit is contained in:
影舞者
2021-12-07 17:06:50 +08:00
parent f71b4ab68f
commit e1a4bfabfc
6 changed files with 30 additions and 7 deletions
+10
View File
@@ -120,6 +120,14 @@ func ParseInput(Info *HostInfo) {
if Info.Ports == DefaultPorts {
Info.Ports += "," + Webport
}
if PortAdd != "" {
if strings.HasSuffix(Info.Ports, ",") {
Info.Ports += PortAdd
} else {
Info.Ports += "," + PortAdd
}
}
}
func ParseScantype(Info *HostInfo) {
@@ -130,6 +138,8 @@ func ParseScantype(Info *HostInfo) {
if Info.Scantype != "all" {
if Info.Ports == DefaultPorts {
switch Info.Scantype {
case "rdp":
Info.Ports = "3389"
case "wmi":
Info.Ports = "135"
case "web":