Sha256: d622e5f8901231f1635b9babc3b56f33e4a7531f7b2aeacae6c22b3e38574745

Contents?: true

Size: 889 Bytes

Versions: 15

Compression:

Stored size: 889 Bytes

Contents

# -*- coding: binary -*-

require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/extensions/stdapi/constants'

module Rex
module Post
module Meterpreter
module Extensions
module Stdapi
module Sys
module ProcessSubsystem

###
#
# This class provides an input/output interface to an executed
# process' standard input and output.
#
###
class IO

  ##
  #
  # Constructor
  #
  ##

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

  #
  # 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:

end

end; end; end; end; end; end; end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.12 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.11 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.10 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.9 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.8 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.7 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.5 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.4 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
dstruct-0.0.1 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.3 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
librex-0.0.999 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
rex-2.0.2 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
librex-0.0.71 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
librex-0.0.70 lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb