Sha256: a777e385f88ceebf35b829a98b450e1fe308c3c89543198fc1f47f54d3a3742b

Contents?: true

Size: 747 Bytes

Versions: 43

Compression:

Stored size: 747 Bytes

Contents

#!/usr/bin/env ruby

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

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.35 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.34 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.33 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.32 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.31 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.30 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.29 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.28 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.27 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.26 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.25 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.23 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.21 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.19 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.17 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.13 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.12 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.7 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.6 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
librex-0.0.5 lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb