We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb684bb commit fdca963Copy full SHA for fdca963
modules/auxiliary/scanner/portscan/tcp.rb
@@ -80,8 +80,10 @@ def run_host(ip)
80
'ConnectTimeout' => (timeout / 1000.0)
81
}
82
)
83
- print_status("#{ip}:#{port} - TCP OPEN")
84
- r << [ip,port,"open"]
+ if s
+ print_status("#{ip}:#{port} - TCP OPEN")
85
+ r << [ip,port,"open"]
86
+ end
87
rescue ::Rex::ConnectionRefused
88
vprint_status("#{ip}:#{port} - TCP closed")
89
r << [ip,port,"closed"]
@@ -92,7 +94,9 @@ def run_host(ip)
92
94
rescue ::Exception => e
93
95
print_error("#{ip}:#{port} exception #{e.class} #{e} #{e.backtrace}")
96
ensure
- disconnect(s) rescue nil
97
98
+ disconnect(s) rescue nil
99
100
end
101
102
0 commit comments