Sha256: 14fa0f529e40eb72ac8e859f6203d817fb6166768576c515eb041c9314e769e1

Contents?: true

Size: 776 Bytes

Versions: 15

Compression:

Stored size: 776 Bytes

Contents

# -*- coding: binary -*-

require 'rex/post/io'

module Rex
module Post
module Meterpreter
module Extensions
module Stdapi
module Fs

##
#
# The IO class acts as a base class for things that would normally implement
# the IO interface.  The methods it implements are for general operations that
# are common to all channels, such as read, write, and close.
#
##
class IO < Rex::Post::IO

  #
  # Read the specified number of bytes from the channel.
  #
  def sysread(length = nil)
    self.filed.read(length)
  end

  alias read sysread

  #
  # Writes the supplied buffer to the channel.
  #
  def syswrite(buf)
    self.filed.write(buf)
  end

  alias write syswrite

  #
  # Closes the channel.
  #
  def close
    self.filed.close
  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/fs/io.rb
rex-2.0.12 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.11 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.10 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.9 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.8 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.7 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.5 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.4 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
dstruct-0.0.1 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.3 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.999 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
rex-2.0.2 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.71 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.70 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb