Class Rex::Post::Meterpreter::Extensions::Stdapi::Fs::File
In: lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb
Parent: Rex::Post::Meterpreter::Extensions::Stdapi::Fs::IO

This class implements the Rex::Post::File interface and wraps interaction with files on the remote machine.

Methods

_open   basename   download   download_file   eof   expand_path   new   pos   seek   stat   sysseek   upload   upload_file  

Included Modules

Rex::Post::File

Constants

SEPARATOR = "\\"
Separator = "\\"

Attributes

client  [RW] 

Public Class methods

Returns the base name of the supplied file path to the caller.

Download one or more files from the remote computer to the local directory supplied in destination.

Download a single file.

Expands a file path, substituting all environment variables, such as %TEMP%.

Initializes and opens the specified file with the specified permissions.

Performs a stat on a file and returns a FileStat instance.

Upload one or more files to the remote computer the remote directory supplied in destination.

Public Instance methods

Returns whether or not the file has reach EOF.

Returns the current position of the file pointer.

Seeks to the supplied offset based on the supplied relativity.

Protected Instance methods

Creates a File channel using the supplied information.

[Validate]