do not wait for WfsDelay if unable to enum printers

git-svn-id: file:///home/svn/framework3/trunk@10553 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-10-05 19:03:52 +00:00
parent 3276451e3d
commit d2c5d62606
1 changed files with 12 additions and 8 deletions

View File

@ -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 = []