mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
update
This commit is contained in:
parent
8767c9bae4
commit
17c85431ca
@ -31,9 +31,7 @@ type Brutelist struct {
|
|||||||
// RdpScan 执行RDP服务扫描
|
// RdpScan 执行RDP服务扫描
|
||||||
func RdpScan(info *Common.HostInfo) (tmperr error) {
|
func RdpScan(info *Common.HostInfo) (tmperr error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := recover(); err != nil {
|
recover()
|
||||||
fmt.Printf("[!] 扫描错误 %v:%v - %v\n", info.Host, info.Ports, err)
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
if Common.DisableBrute {
|
if Common.DisableBrute {
|
||||||
return
|
return
|
||||||
@ -120,8 +118,7 @@ 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() {
|
defer func() {
|
||||||
if err := recover(); err != nil {
|
recover()
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
target := fmt.Sprintf("%s:%d", ip, port)
|
target := fmt.Sprintf("%s:%d", ip, port)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user