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 6e253a5 commit a781480Copy full SHA for a781480
modules/exploits/windows/smb/ms17_010_eternalblue.rb
@@ -269,7 +269,14 @@ def verify_arch
269
)
270
271
sock.put(pkt)
272
- res = sock.get_once
+
273
+ begin
274
+ res = sock.get_once(60)
275
+ rescue EOFError
276
+ print_error('DCE/RPC socket returned EOFError')
277
+ return false
278
+ end
279
280
disconnect(sock)
281
282
begin
@@ -287,7 +294,8 @@ def verify_arch
287
294
end
288
295
when ARCH_X86
289
296
# Ack result: Provider rejection (2)
290
- if resp.ack_result.first != 0
297
+ # Ack reason: Proposed transfer syntaxes not supported (2)
298
+ if resp.ack_result.first == 2 && resp.ack_reason.first == 2
291
299
ret = true
292
300
293
301
0 commit comments