suggest a reason if we get no server response

This commit is contained in:
Brent Cook 2018-04-25 03:57:12 -05:00
parent a0f16b4a66
commit 4cba6d1df4
1 changed files with 4 additions and 8 deletions

View File

@ -277,20 +277,16 @@ class MetasploitModule < Msf::Exploit::Remote
end
def verify_arch
ret = false
return true unless datastore['VerifyArch']
# XXX: This sends a new DCE/RPC packet
arch = dcerpc_getarch
if arch && arch == target_arch.first
ret = true
else
print_warning("Target arch is #{target_arch.first}, but server returned #{arch.inspect}")
end
return true if arch && arch == target_arch.first
ret
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)