C# Class Fuzzer.RemoteControl.RemoteControlProtocol

Inheritance: IDisposable
显示文件 Open project: areiter/InMemoryFuzzing Class Usage Examples

Public Methods

Method 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

Method 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 method

public Dispose ( ) : void
return void

RegisterHandler() public method

public RegisterHandler ( string receiver, HandlerCallbackDelegate handlerCallback ) : void
receiver string
handlerCallback HandlerCallbackDelegate
return void

RemoteControlProtocol() public method

public RemoteControlProtocol ( ) : System
return System

RemoteEcho() public method

public RemoteEcho ( string echoString ) : void
echoString string
return void

RemoteExec() public method

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
return void

RemoteProcesses() public method

Requests the remote running processes
public RemoteProcesses ( ) : void
return void

RemoteRequestPipe() public method

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

SendCommand() public method

public SendCommand ( RemoteCommand cmd ) : void
cmd RemoteCommand
return void

SetConnection() public method

public SetConnection ( Stream conn ) : void
conn Stream
return void