do not wait for WfsDelay if unable to enum printers
git-svn-id: file:///home/svn/framework3/trunk@10553 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
3276451e3d
commit
d2c5d62606
|
@ -95,6 +95,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
if (pname = datastore['PNAME'])
|
||||
printers << pname
|
||||
else
|
||||
begin
|
||||
res = self.simple.client.trans(
|
||||
"\\PIPE\\LANMAN",
|
||||
(
|
||||
|
@ -104,6 +105,9 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
[0x01, 65406].pack("vv")
|
||||
)
|
||||
)
|
||||
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode => e
|
||||
raise RuntimeError, e.message
|
||||
end
|
||||
|
||||
printers = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue