mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 21:21:53 +08:00
initial cleanup
This commit is contained in:
@@ -119,12 +119,15 @@ func SmbGhostScan(info *common.HostInfo) error {
|
||||
return err
|
||||
}
|
||||
buff := make([]byte, 1024)
|
||||
err = conn.SetReadDeadline(time.Now().Add(timeout))
|
||||
|
||||
_ = conn.SetReadDeadline(time.Now().Add(timeout))
|
||||
|
||||
n, err := conn.Read(buff)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if bytes.Contains(buff[:n], []byte("Public")) == true {
|
||||
|
||||
if bytes.Contains(buff[:n], []byte("Public")) {
|
||||
result := fmt.Sprintf("[+] %v CVE-2020-0796 SmbGhost Vulnerable", ip)
|
||||
common.LogSuccess(result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user