Beispiel #1
0
 public static void Send(XPloitSocketClient client, byte[] data)
 {
     client.Send(new XPloitMsgByteArray()
     {
         Data = data
     });
 }
Beispiel #2
0
        //https://support.microsoft.com/en-us/kb/231866
        //public static byte[] GetColorMessage()
        //{
        //    return new byte[]
        //        {
        //           255, 0x1B, (byte)'[',
        //            38, 2,
        //            0, 187, 0,
        //            (byte)'m'
        //        };
        //}

        #region Allowed send
        public static void Send(XPloitSocketClient client, string data)
        {
            client.Send(new XPloitMsgString()
            {
                Data = data
            });
        }
Beispiel #3
0
 void client_OnMessage(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg)
 {
     // Client receive message
     cl.Send(new XPloitMsgLogin()
     {
         Domain = "?", User = "******", Password = "******", InResponseTo = msg.Id
     });
 }
Beispiel #4
0
 void client_OnMessage(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg)
 {
     // Client receive message
     cl.SendReply(new XPloitMsgLogin()
     {
         Domain = "?", User = "******", Password = "******"
     }, msg);
 }
Beispiel #5
0
        void s_OnMessage2(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg)
        {
            // Server receive msg
            XPloitMsgString msgS = (XPloitMsgString)msg;

            //XPloitTelnetProtocol.Send(cl, XPloitTelnetProtocol.GetColorMessage());
            //XPloitTelnetProtocol.Send(cl, new byte[] { 255, 247 });
            XPloitTelnetProtocol.Send(cl, "Received: " + msgS.Data + Environment.NewLine);

            //isover = true;
        }
Beispiel #6
0
 void _Socket_OnMessage(XPloitSocket sender, XPloitSocketClient client, IXPloitSocketMsg msg)
 {
 }
Beispiel #7
0
 void _Socket_OnDisconnect(XPloitSocket sender, XPloitSocketClient client, EDissconnectReason e)
 {
 }
Beispiel #8
0
 void _Socket_OnConnect(XPloitSocket sender, XPloitSocketClient client)
 {
 }
Beispiel #9
0
 void s_OnConnect2(XPloitSocket sender, XPloitSocketClient cl)
 {
     //XPloitTelnetProtocol.Send(cl, new byte[] { 255, 247 });
     //XPloitTelnetProtocol.Send(cl, XPloitTelnetProtocol.GetColorMessage());
     XPloitTelnetProtocol.Send(cl, "server to client" + Environment.NewLine);
 }
Beispiel #10
0
 void s_OnMessage(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg)
 {
     // Server receive msg
     isover = true;
 }
Beispiel #11
0
 public bool Connect(XPloitSocketClient client) { return true; }
Beispiel #12
0
 public bool Connect(XPloitSocketClient client)
 {
     return(true);
 }
Beispiel #13
0
 public static void Send(XPloitSocketClient client, byte[] data) { client.Send(new XPloitMsgByteArray() { Data = data }); }
Beispiel #14
0
        //https://support.microsoft.com/en-us/kb/231866
        //public static byte[] GetColorMessage()
        //{
        //    return new byte[] 
        //        { 
        //           255, 0x1B, (byte)'[', 
        //            38, 2, 
        //            0, 187, 0,
        //            (byte)'m' 
        //        };
        //}

        #region Allowed send
        public static void Send(XPloitSocketClient client, string data) { client.Send(new XPloitMsgString() { Data = data }); }