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 ee57c71 commit beb1cefCopy full SHA for beb1cef
modules/exploits/windows/smb/ms17_010_eternalblue.rb
@@ -263,10 +263,20 @@ def verify_arch
263
'71710533-beba-4937-8319-b5dbef9ccc36', '1.0'
264
).first
265
266
- sock = connect(false,
267
- 'RHOST' => rhost,
268
- 'RPORT' => 135
269
- )
+ begin
+ sock = connect(false,
+ 'RHOST' => rhost,
+ 'RPORT' => 135
270
+ )
271
+ rescue ::Errno::ECONNRESET,
272
+ ::Rex::HostUnreachable,
273
+ ::Rex::ConnectionTimeout,
274
+ ::Rex::ConnectionRefused => e
275
+ print_error(e.to_s)
276
+ print_warning('Target arch not detected for target OS')
277
+ print_warning('Disable VerifyArch option to proceed manually...')
278
+ return false
279
+ end
280
281
sock.put(pkt)
282
0 commit comments