mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
update
This commit is contained in:
parent
9c0fcd98fe
commit
2f7d020e9f
@ -30,6 +30,11 @@ type Brutelist struct {
|
|||||||
|
|
||||||
// RdpScan 执行RDP服务扫描
|
// RdpScan 执行RDP服务扫描
|
||||||
func RdpScan(info *Common.HostInfo) (tmperr error) {
|
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 {
|
if Common.DisableBrute {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -114,6 +119,10 @@ func incrNum(num *int, mutex *sync.Mutex) {
|
|||||||
|
|
||||||
// RdpConn 尝试RDP连接
|
// RdpConn 尝试RDP连接
|
||||||
func RdpConn(ip, domain, user, password string, port int, timeout int64) (bool, error) {
|
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)
|
target := fmt.Sprintf("%s:%d", ip, port)
|
||||||
|
|
||||||
// 创建RDP客户端
|
// 创建RDP客户端
|
||||||
|
Loading…
Reference in New Issue
Block a user