msftidy fixes
parent
9a9e9ead51
commit
b22c606b9a
|
@ -25,17 +25,13 @@ 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
|
||||
return accessible_pipes, pipe_handles
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue