fix pipeaudit.rb

GSoC/Meterpreter_Web_Console
Auxilus 2018-03-09 22:14:16 +05:30
parent 2b7364a637
commit 8b3e5c745b
1 changed files with 6 additions and 3 deletions

View File

@ -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