lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb in librex-0.0.68 vs lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb in librex-0.0.70
- old
+ new
@@ -1,6 +1,5 @@
-#!/usr/bin/env ruby
# -*- coding: binary -*-
require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/extensions/stdapi/constants'
@@ -18,39 +17,39 @@
# process' standard input and output.
#
###
class IO
- ##
- #
- # Constructor
- #
- ##
+ ##
+ #
+ # Constructor
+ #
+ ##
- #
- # Initializes the IO instance.
- #
- def initialize(process)
- self.process = process
- end
+ #
+ # Initializes the IO instance.
+ #
+ def initialize(process)
+ self.process = process
+ end
- #
- # Writes the supplied buffer to the standard input handle of the
- # executed process.
- #
- def write(buf)
- return process.channel.write(buf)
- end
+ #
+ # Writes the supplied buffer to the standard input handle of the
+ # executed process.
+ #
+ def write(buf)
+ return process.channel.write(buf)
+ end
- #
- # Reads data from the standard output handle of the executed process.
- #
- def read(length = nil)
- return process.channel.read(length)
- end
+ #
+ # Reads data from the standard output handle of the executed process.
+ #
+ def read(length = nil)
+ return process.channel.read(length)
+ end
protected
- attr_accessor :process # :nodoc:
+ attr_accessor :process # :nodoc:
end
end; end; end; end; end; end; end