C# Class PacketEditor.Main

ファイルを表示 Open project: appsec-labs/Advanced_Packet_Editor Class Usage Examples

Public Methods

Method Description
Main ( ) : System
ProcessExited ( ) : void
Start ( ) : void
UpdateMainGrid ( byte data ) : void
UpdateTree ( byte data ) : void
writepipe ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ListenerCallback ( IAsyncResult result ) : void
ProcessRequest ( System Context ) : void

Overridable method that can be used to implement a custom handler

Private Methods

Method Description
AdjustTokenPrivileges ( IntPtr TokenHandle, [ DisableAllPrivileges, TOKEN_PRIVILEGES &NewState, UInt32 Zero, IntPtr Null1, IntPtr Null2 ) : bool
ArraysEqual ( byte a1, byte a2 ) : bool
Attach ( int pID, string Path ) : bool
CloseHandle ( IntPtr hHandle ) : bool
CreateFile ( ) : string
CreateRemoteThread ( IntPtr hProcess, IntPtr lpThreadAttributes, uint dwStackSize, IntPtr lpStartAddress, IntPtr lpParameter, uint dwCreationFlags, IntPtr lpThreadId ) : IntPtr
GetCurrentProcess ( ) : IntPtr
GetModuleHandle ( string lpModuleName ) : IntPtr
GetProcAddress ( IntPtr hModule, string procName ) : IntPtr
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LookupPrivilegeValue ( string lpSystemName, string lpName, LUID &lpLuid ) : bool
MIReplay_Click ( object sender, EventArgs e ) : void
MnuToolsProxy_Click ( object sender, EventArgs e ) : void
OpenProcess ( ProcessAccessFlags dwDesiredAccess, [ bInheritHandle, int dwProcessId ) : IntPtr
OpenProcessToken ( IntPtr ProcessHandle, UInt32 DesiredAccess, IntPtr &TokenHandle ) : bool
PipeRead ( ) : void
UpdateText ( ) : void
VirtualAllocEx ( IntPtr hProcess, IntPtr lpAddress, uint dwSize, AllocationType flAllocationType, MemoryProtection flProtect ) : IntPtr
WriteProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, byte lpBuffer, uint nSize, int &lpNumberOfBytesWritten ) : bool
activateExtenalFilter ( ) : void
addyporttosockaddy ( string s, Glob sa ) : Glob.sockaddr_in
bytestoaddy ( byte bytes ) : string
bytestohexstring ( byte bytes ) : string
closeExternalFilter ( ) : void
copyForListenerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
dgridMain_CellContentClick ( object sender, DataGridViewCellEventArgs e ) : void
dgridMain_CellDoubleClick ( object sender, DataGridViewCellEventArgs e ) : void
dgridMain_RowsAdded ( object sender, DataGridViewRowsAddedEventArgs e ) : void
filtersToolStripMenuItem_Click ( object sender, EventArgs e ) : void
frmMain_Activated ( object sender, EventArgs e ) : void
frmMain_Deactivate ( object sender, EventArgs e ) : void
frmMain_FormClosing ( object sender, FormClosingEventArgs e ) : void
frmMain_Load ( object sender, EventArgs e ) : void
frmMain_Resize ( object sender, EventArgs e ) : void
hexaddyporttosockaddy ( string s, Glob sa ) : Glob.sockaddr_in
hexstringtoaddy ( string s ) : string
hexstringtobyte ( string s ) : byte[]
icoNotify_DoubleClick ( object sender, EventArgs e ) : void
injectToolStripMenuItem_Click ( object sender, EventArgs e ) : void
invokeDLL ( ) : bool
listen ( ) : void
mnuAPIClear_Click ( object sender, EventArgs e ) : void
mnuDNSClear_Click ( object sender, EventArgs e ) : void
mnuFileAttach_Click ( object sender, EventArgs e ) : void
mnuFileDetach_Click ( object sender, EventArgs e ) : void
mnuFileExit_Click ( object sender, EventArgs e ) : void
mnuFileOpen_Click ( object sender, EventArgs e ) : void
mnuHelpHelp_Click ( object sender, EventArgs e ) : void
mnuHelpWebsite_Click ( object sender, EventArgs e ) : void
mnuInvokeFreeze_Click ( object sender, EventArgs e ) : void
mnuMsgClear_Click ( object sender, EventArgs e ) : void
mnuMsgCopyASCII_Click ( object sender, EventArgs e ) : void
mnuMsgCopyHex_Click ( object sender, EventArgs e ) : void
mnuMsgReplay_Click ( object sender, EventArgs e ) : void
mnuMsgSocketClose_Click ( object sender, EventArgs e ) : void
mnuMsgSocketSDboth_Click ( object sender, EventArgs e ) : void
mnuMsgSocketSDrecv_Click ( object sender, EventArgs e ) : void
mnuMsgSocketSDsend_Click ( object sender, EventArgs e ) : void
mnuNotifyExit_Click ( object sender, EventArgs e ) : void
mnuOptionsOntop_CheckedChanged ( object sender, EventArgs e ) : void
mnuToolsExternalFilter ( ) : int
mnuToolsFilter_CheckedChanged ( object sender, EventArgs e ) : void
mnuToolsFilters_Click ( object sender, EventArgs e ) : void
mnuToolsMonitor_CheckedChanged ( object sender, EventArgs e ) : void
mnuToolsSockets_Click ( object sender, EventArgs e ) : void
reAttachToolStripMenuItem_Click ( object sender, EventArgs e ) : void
showToolStripMenuItem_CheckedChanged ( object sender, EventArgs e ) : void
showrecvRecvAllToolStripMenuItem_CheckedChanged ( object sender, EventArgs e ) : void
timerPython_Tick ( object sender, EventArgs e ) : void
toolToggleFilter_Click ( object sender, EventArgs e ) : void
trimzeros ( byte bytes ) : byte[]

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

ListenerCallback() protected method

protected ListenerCallback ( IAsyncResult result ) : void
result IAsyncResult
return void

Main() public method

public Main ( ) : System
return System

ProcessExited() public method

public ProcessExited ( ) : void
return void

ProcessRequest() protected method

Overridable method that can be used to implement a custom handler
protected ProcessRequest ( System Context ) : void
Context System
return void

Start() public method

public Start ( ) : void
return void

UpdateMainGrid() public method

public UpdateMainGrid ( byte data ) : void
data byte
return void

UpdateTree() public method

public UpdateTree ( byte data ) : void
data byte
return void

writepipe() public method

public writepipe ( ) : void
return void