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 be29e44 commit 2fa75e0Copy full SHA for 2fa75e0
modules/auxiliary/scanner/http/wordpress_login_enum.rb
@@ -111,10 +111,15 @@ def do_enum(user=nil)
111
'data' => post_data,
112
}, 20)
113
114
+ if res.nil?
115
+ print_error("Connection timed out")
116
+ return :abort
117
+ end
118
+
119
120
valid_user = false
121
- if (res and res.code == 200 )
122
+ if res.code == 200
123
if (res.body.to_s =~ /Incorrect password/ )
124
valid_user = true
125
@@ -150,7 +155,9 @@ def do_enum(user=nil)
150
155
end
151
156
152
157
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
158
153
159
rescue ::Timeout::Error, ::Errno::EPIPE
160
154
161
162
163
0 commit comments