File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
modules/auxiliary/scanner/lotus Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ def run_host(ip)
45
45
'uri' => "#{ $uri} \/ $defaultview?Readviewentries" ,
46
46
} , 25 )
47
47
48
+ if res . nil?
49
+ print_error ( "Connection timed out" )
50
+ return
51
+ end
52
+
48
53
if ( res and res . body . to_s =~ /\< viewentries/ )
49
54
print_good ( "http://#{ vhost } :#{ rport } - Lotus Domino - OK names.nsf accessible without credentials" )
50
55
cookie = ''
@@ -85,6 +90,11 @@ def do_login(user=nil,pass=nil)
85
90
'data' => post_data ,
86
91
} , 20 )
87
92
93
+ if res . nil?
94
+ print_error ( "Connection timed out" )
95
+ return
96
+ end
97
+
88
98
if ( res and res . code == 302 )
89
99
if res . headers [ 'Set-Cookie' ] and res . headers [ 'Set-Cookie' ] . match ( /DomAuthSessId=(.*);(.*)/i )
90
100
cookie = "DomAuthSessId=#{ $1} "
You can’t perform that action at this time.
0 commit comments