Beispiel #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            tcpfrontOne.Text = "Basic:Testing...";
            if (TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "AsrTool") != "timedout")
            {
                tcpfrontOne.Text = "Basic:Success"; tcpfrontOne.ForeColor = Color.Green;
            }
            else
            {
                tcpfrontOne.Text = "Basic:Failed"; tcpfrontOne.ForeColor = Color.DarkRed;
            }

            tcpfrontTwo.Text = "Plugin injection:Testing...";
            if (TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "$internAUP printl AsrTool Plugin Injection") == "Injected.")
            {
                tcpfrontTwo.Text = "Plugin injection:Success"; tcpfrontTwo.ForeColor = Color.Green;
            }
            else
            {
                tcpfrontTwo.Text = "Plugin injection:Failed"; tcpfrontTwo.ForeColor = Color.DarkRed;
            }

            tcpfrontThird.Text = "AsrShare:Testing...";
            if (TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "c:askconnect") == "c:acceptconnect")
            {
                tcpfrontThird.Text = "AsrShare:Success"; tcpfrontThird.ForeColor = Color.Green;
            }
            else
            {
                tcpfrontThird.Text = "AsrShare:Failed"; tcpfrontThird.ForeColor = Color.DarkRed;
            }
        }
Beispiel #2
0
 private void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         if (TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "AsrTool") != "timedout")
         {
             asrstatus.Text = "Success";
         }
         else
         {
             asrstatus.Text = "Timed out";
         }
     }
     catch (Exception) { asrstatus.Text = "An error occured"; }
 }
Beispiel #3
0
 private void button10_Click(object sender, EventArgs e)
 {
     try
     {
         if (TcpTool.QuickSend(asrip.Text, int.Parse(usocketport.Text), "AsrTool").IndexOf("usocket | version") != -1)
         {
             MessageBox.Show("USocket is running on the port " + usocketport.Text, "USocket", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else
         {
             MessageBox.Show("USocket is not running on the port " + usocketport.Text, "USocket", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch (Exception) { }
 }
Beispiel #4
0
 private void button8_Click(object sender, EventArgs e)
 {
     TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "execute exit");
 }
Beispiel #5
0
 private void Button7_Click(object sender, EventArgs e)
 {
     TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "$internAUP " + textBox3.Text);
 }
Beispiel #6
0
 private void Button6_Click(object sender, EventArgs e)
 {
     textBox2.Text = TcpTool.QuickSend(asrip.Text, int.Parse(asrport.Text), "phone.getids").Replace("\n", Environment.NewLine);
 }