C# Class WSockConnectHook.WinSockConnectController

Inheritance: IDisposable, IHook
Mostrar archivo Open project: duketwo/WinsockConnectHookSocks5

Public Methods

Method Description
Dispose ( ) : void
WinSockConnectController ( IntPtr address, string proxyIp, string proxyPort, string proxyUser, string proxyPass ) : System

Private Methods

Method Description
CreateAddr ( string ip, string port ) : IntPtr
Recieve ( IntPtr socket, int len ) : IntPtr
RecieveAuth ( IntPtr socket, int len ) : IntPtr
RecieveBind ( IntPtr socket, int len ) : IntPtr
SetAddr ( IntPtr addr, string ip, string port ) : void
SetLastError ( int errorCode ) : void
SetUpAuthenticateRequest ( string username, string password, int &index ) : IntPtr
SetUpBindWithRemoteHost ( string eveIP, ushort evePort ) : IntPtr
SetUpSocks5Request ( ) : IntPtr
StructToPtr ( object obj ) : IntPtr
VerifyBindResponse ( IntPtr buffer ) : bool
WSAGetLastError ( ) : int
WSASetLastError ( int set ) : void
WinsockConnectDetour ( IntPtr s, IntPtr sockAddr, int addrsize ) : int
closesocket ( IntPtr s ) : int
connect ( IntPtr s, IntPtr addr, int addrsize ) : int
htons ( ushort hostshort ) : ushort
inet_addr ( string cp ) : uint
ioctlsocket ( [ s, long cmd, uint &argp ) : int
ntohs ( ushort netshort ) : ushort
recv ( IntPtr s, IntPtr buf, int len, int flags ) : int
send ( IntPtr s, IntPtr buf, int len, int flags ) : int
sockAddrInToString ( sockaddr_in sin ) : String
socket ( short af, short socket_type, int protocol ) : IntPtr

Method Details

Dispose() public method

public Dispose ( ) : void
return void

WinSockConnectController() public method

public WinSockConnectController ( IntPtr address, string proxyIp, string proxyPort, string proxyUser, string proxyPass ) : System
address System.IntPtr
proxyIp string
proxyPort string
proxyUser string
proxyPass string
return System