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,15 +95,19 @@ class Metasploit3 < Msf::Exploit::Remote
if (pname = datastore['PNAME']) if (pname = datastore['PNAME'])
printers << pname printers << pname
else else
res = self.simple.client.trans( begin
"\\PIPE\\LANMAN", res = self.simple.client.trans(
( "\\PIPE\\LANMAN",
[0x00].pack('v') + (
"WrLeh\x00" + [0x00].pack('v') +
"B13BWz\x00" + "WrLeh\x00" +
[0x01, 65406].pack("vv") "B13BWz\x00" +
[0x01, 65406].pack("vv")
)
) )
) rescue ::Rex::Proto::SMB::Exceptions::ErrorCode => e
raise RuntimeError, e.message
end
printers = [] printers = []