fix pipeaudit.rb
parent
2b7364a637
commit
8b3e5c745b
|
@ -20,10 +20,13 @@ module Exploit::Remote::SMB::Client::PipeAudit
|
|||
if (!pipe_file)
|
||||
print_error("File with named pipes is needed")
|
||||
end
|
||||
File.open(pipe_file, 'rb') { |f| target_pipes += f.readlines.split("\n")[0] }
|
||||
target_pipes.each do |pipe|
|
||||
p_file = File.open(pipe_file).read
|
||||
vprint_status("File: #{p_file}")
|
||||
#File.open(pipe_file, 'rb') { |f| target_pipes += f.readlines.split("\n")[0] }
|
||||
p_file.each_line do |pipe|
|
||||
begin
|
||||
pipe_name = "#{pipe}"
|
||||
pipe_name = "#{pipe.to_s.split("\n")[0]}"
|
||||
print_status("Using pipe #{pipe_name}")
|
||||
pipe_handle = self.simple.create_pipe(pipe_name, 'o')
|
||||
print_status("Accessible pipe found: #{pipe_name}")
|
||||
pipe_found = 1
|
||||
|
|
Loading…
Reference in New Issue