C# Class Fuzzer.RemoteControl.RemoteControlProtocol

Inheritance: IDisposable
Afficher le fichier Open project: areiter/InMemoryFuzzing Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
RegisterHandler ( string receiver, HandlerCallbackDelegate handlerCallback ) : void
RemoteControlProtocol ( ) : System
RemoteEcho ( string echoString ) : void
RemoteExec ( string name, string path, IList arguments, IList environment ) : void

Starts the specified application (path) on the remote path

RemoteProcesses ( ) : void

Requests the remote running processes

RemoteRequestPipe ( string pipeName ) : void

Opens a remote pipe and sends all received data

SendCommand ( RemoteCommand cmd ) : void
SetConnection ( Stream conn ) : void

Private Methods

Méthode Description
CBRead ( IAsyncResult ar ) : void
FindFirstOccurance ( int startIndex, byte data ) : int?

Finds the first occurance of data in the buffer

GetPipeName ( int pipeId ) : string
HandlerExecStatus ( string receiver, byte data ) : void
HandlerPipeClosed ( string receiver, byte data ) : void
HandlerPipeData ( string receiver, byte data ) : void

Pipe data was sent

HandlerRegisteredPipe ( string receiver, byte data ) : void

And pipe request was sent. This assigns a unique id to the requested pipe

HandlerRemoteProcesses ( string receiver, byte data ) : void
ProcessBuffer ( ) : void

Extracts and removes complete received packets from the buffer

RaiseExecStatus ( string name, int pid, int status ) : void
RaisePipeClosed ( int pipeId ) : void
RaisePipeData ( int pipeId, byte pipeData, int index, int offset ) : void
RaisePipeOpened ( int pipeId ) : void
RaiseRemoteProcessInfo ( RemoteProcessInfo remoteProcesses ) : void
SendPacket ( string receiver, byte data ) : void
StartReading ( ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

RegisterHandler() public méthode

public RegisterHandler ( string receiver, HandlerCallbackDelegate handlerCallback ) : void
receiver string
handlerCallback HandlerCallbackDelegate
Résultat void

RemoteControlProtocol() public méthode

public RemoteControlProtocol ( ) : System
Résultat System

RemoteEcho() public méthode

public RemoteEcho ( string echoString ) : void
echoString string
Résultat void

RemoteExec() public méthode

Starts the specified application (path) on the remote path
public RemoteExec ( string name, string path, IList arguments, IList environment ) : void
name string Name can be chosen freely and is always used when this program instance is referenced
path string Path to start
arguments IList Arguments to pass to the application
environment IList Environment variables to set in the form variable=value
Résultat void

RemoteProcesses() public méthode

Requests the remote running processes
public RemoteProcesses ( ) : void
Résultat void

RemoteRequestPipe() public méthode

Opens a remote pipe and sends all received data
public RemoteRequestPipe ( string pipeName ) : void
pipeName string
Résultat void

SendCommand() public méthode

public SendCommand ( RemoteCommand cmd ) : void
cmd RemoteCommand
Résultat void

SetConnection() public méthode

public SetConnection ( Stream conn ) : void
conn Stream
Résultat void