C# Class Fuzzer.TargetConnectors.GDB.GDBSubProcess

Provides access to a GDB sub prcess
Parameters: "gdb_exec": path to the gdb executable "args": extra arguments to pass to gdb "gdb_log": stream:stderr to write gdb output and commands to standard error output stream:stdout standard output file:filename to write to specified file The executable will be loaded using the file command
Inheritance: Fuzzer.IO.ConsoleIO.ConsoleProcess
Afficher le fichier Open project: areiter/InMemoryFuzzing Class Usage Examples

Protected Properties

Свойство Type Description
_gdbLog System.IO.TextWriter
_gdbReadyForInput bool

Méthodes publiques

Méthode Description
GDBSubProcess ( ) : System
QueueCommand ( GDBCommand cmd ) : void

Queues the command, it gets sent as soon as gdb is ready for input

Setup ( string>.IDictionary config ) : void

Méthodes protégées

Méthode Description
GdbLog ( char c ) : void
GdbLog ( string data ) : void
GdbLogLine ( string data ) : void
RegisterPermanentResponseHandler ( GDBResponseHandler responseHandler ) : void
StartProcess ( ) : void
Write ( string format ) : void
WriteLine ( string format ) : void

Private Methods

Méthode Description
ProcessQueue ( ) : void

Checks if gdb is ready and sends the next command

ReadThread ( object data ) : void
ReceivedNewLine ( List lines ) : void

Processes responses received from GDB. There may be direct responses to commands or async responses

Method Details

GDBSubProcess() public méthode

public GDBSubProcess ( ) : System
Résultat System

GdbLog() protected méthode

protected GdbLog ( char c ) : void
c char
Résultat void

GdbLog() protected méthode

protected GdbLog ( string data ) : void
data string
Résultat void

GdbLogLine() protected méthode

protected GdbLogLine ( string data ) : void
data string
Résultat void

QueueCommand() public méthode

Queues the command, it gets sent as soon as gdb is ready for input
public QueueCommand ( GDBCommand cmd ) : void
cmd GDBCommand /// A ///
Résultat void

RegisterPermanentResponseHandler() protected méthode

protected RegisterPermanentResponseHandler ( GDBResponseHandler responseHandler ) : void
responseHandler GDBResponseHandler
Résultat void

Setup() public méthode

public Setup ( string>.IDictionary config ) : void
config string>.IDictionary
Résultat void

StartProcess() protected méthode

protected StartProcess ( ) : void
Résultat void

Write() protected méthode

protected Write ( string format ) : void
format string
Résultat void

WriteLine() protected méthode

protected WriteLine ( string format ) : void
format string
Résultat void

Property Details

_gdbLog protected_oe property

Logs the entire GDB communication
protected TextWriter,System.IO _gdbLog
Résultat System.IO.TextWriter

_gdbReadyForInput protected_oe property

Contains if the "(gdb)" prompt has already been received after the last command
protected bool _gdbReadyForInput
Résultat bool