class Rex::Post::Meterpreter::Extensions::Stdapi::Fs::IO
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.
Public Instance Methods
close()
click to toggle source
Closes the channel.
# File lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb, line 41 def close self.filed.close end
sysread(length = nil)
click to toggle source
Read the specified number of bytes from the channel.
# File lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb, line 23 def sysread(length = nil) self.filed.read(length) end
Also aliased as: read
syswrite(buf)
click to toggle source
Writes the supplied buffer to the channel.
# File lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb, line 32 def syswrite(buf) self.filed.write(buf) end
Also aliased as: write