Skip to content
Permalink
Browse files

Land #12152, EOFError fix for BlueKeep scanner

  • Loading branch information...
wvu-r7 committed Aug 2, 2019
2 parents c4c0ed9 + 178339d commit d9d48ffa91ffd6a7a177f1e09867450be1862d1d
Showing with 7 additions and 1 deletion.
  1. +7 −1 modules/auxiliary/scanner/rdp/cve_2019_0708_bluekeep.rb
@@ -207,7 +207,11 @@ def check_for_patch
rdp_send(x64_packet)

# Quick check for the Ultimatum PDU
res = sock.get_once(-1, 1)
begin
res = sock.get_once(-1, 1)
rescue EOFError
# we don't care
end
return Exploit::CheckCode::Vulnerable if res && res.include?(["0300000902f0802180"].pack("H*"))

# Slow check for Ultimatum PDU. If it doesn't respond in a timely
@@ -396,6 +400,8 @@ def rdp_recv
raise RdpCommunicationError unless res # nil due to a timeout

res
rescue EOFError
raise RdpCommunicationError
end

def rdp_send_recv(data)

0 comments on commit d9d48ff

Please sign in to comment.
You can’t perform that action at this time.