mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
Merge branch 'dev' of https://github.com/shadow1ng/fscan into dev
This commit is contained in:
commit
92c03e95a9
@ -30,6 +30,11 @@ type Brutelist struct {
|
||||
|
||||
// RdpScan 执行RDP服务扫描
|
||||
func RdpScan(info *Common.HostInfo) (tmperr error) {
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
fmt.Printf("[!] 扫描错误 %v:%v - %v\n", info.Host, info.Ports, err)
|
||||
}
|
||||
}()
|
||||
if Common.DisableBrute {
|
||||
return
|
||||
}
|
||||
@ -114,6 +119,10 @@ func incrNum(num *int, mutex *sync.Mutex) {
|
||||
|
||||
// RdpConn 尝试RDP连接
|
||||
func RdpConn(ip, domain, user, password string, port int, timeout int64) (bool, error) {
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
}
|
||||
}()
|
||||
target := fmt.Sprintf("%s:%d", ip, port)
|
||||
|
||||
// 创建RDP客户端
|
||||
|
Loading…
Reference in New Issue
Block a user