Land #9924, Improve debug output in ETERNALBLUE's verify_arch

4.x
Brent Cook 2018-04-25 03:57:52 -05:00 committed by Metasploit
parent 2aa7904270
commit ab12eb8c50
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 9 additions and 1 deletions

View File

@ -278,7 +278,15 @@ class MetasploitModule < Msf::Exploit::Remote
def verify_arch
return true unless datastore['VerifyArch']
(dcerpc_getarch == target_arch.first) ? true : false
# XXX: This sends a new DCE/RPC packet
arch = dcerpc_getarch
return true if arch && arch == target_arch.first
print_warning("Target arch is #{target_arch.first}, but server returned #{arch.inspect}")
print_warning("The DCE/RPC service or probe may be blocked") if arch.nil?
false
end
def print_core_buffer(os)