public NTLM(NetworkSocket socket, string sUsername, string sPassword, string sDomain) { this.m_Socket = socket; this.m_sUsername = sUsername; this.m_sPassword = sPassword; this.m_sDomain = sDomain; this.m_sWorkstation = Options.ClientName; this.m_bNTLMv2 = false; }
internal static void Connect(string host, int port) { ConnectionStage = eConnectionStage.Connecting; m_bSSLConnection = false; try { NetworkSocket socket = new NetworkSocket(host.Replace(".", "")); socket.Connect(host, port); m_OpenSocket = socket; } catch { } }
internal static void Close() { try { if (m_OpenSocket != null) { m_OpenSocket.Close(); m_bConnectionAlive = false; m_OpenSocket = null; } } catch { } }
public RdpPacket(NetworkSocket Socket, byte[] buffer) { this.m_Socket = Socket; this.m_Buffer = buffer; }