msftidy fixes

GSoC/Meterpreter_Web_Console
Auxilus 2018-03-13 01:39:47 +05:30
parent 9a9e9ead51
commit b22c606b9a
1 changed files with 2 additions and 6 deletions

View File

@ -25,18 +25,14 @@ module Exploit::Remote::SMB::Client::PipeAudit
pipe_name = "#{pipe.to_s.split("\n")[0]}"
vprint_status("Using pipe #{pipe_name}")
pipe_handle = self.simple.create_pipe(pipe_name, 'o')
print_good("Accessible pipe found: #{pipe_name}")
pipe_found = true
vprint_good("Accessible pipe found: #{pipe_name}")
accessible_pipes << pipe_name
pipe_handles << pipe_handle
rescue Rex::Proto::SMB::Exceptions::ErrorCode => e
vprint_status("Inaccessible named pipe #{pipe_name} - #{e.message}")
end
end
if (pipe_found)
return accessible_pipes, pipe_handles
end
end
end
end