예제 #1
0
        public NTLM(NetworkSocket socket, string sUsername, string sPassword, string sDomain)
        {
            m_Socket    = socket;
            m_sUsername = sUsername;
            m_sPassword = sPassword;
            m_sDomain   = sDomain;
            m_bNTLMv2   = false;

            if (string.IsNullOrWhiteSpace(m_sWorkstation))
            {
                m_sWorkstation = RDPClient.ClientName;
            }
        }
예제 #2
0
 internal static void Connect(string host, int port)
 {
     ConnectionStage            = RDPClient.eConnectionStage.Connecting;
     RDPClient.m_bSSLConnection = false;
     try
     {
         NetworkSocket socket = new NetworkSocket(host.Replace(".", ""));
         socket.Connect(host, port);
         RDPClient.m_OpenSocket = socket;
     }
     catch
     {
     }
 }