예제 #1
0
 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;
 }
예제 #2
0
 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 { }
 }
예제 #3
0
 internal static void Close()
 {
     try
     {
         if (m_OpenSocket != null)
         {
             m_OpenSocket.Close();
             m_bConnectionAlive = false;
             m_OpenSocket       = null;
         }
     }
     catch { }
 }
예제 #4
0
 public RdpPacket(NetworkSocket Socket, byte[] buffer)
 {
     this.m_Socket = Socket;
     this.m_Buffer = buffer;
 }