Land #9924, Improve debug output in ETERNALBLUE's verify_arch
parent
2aa7904270
commit
ab12eb8c50
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue