资源简介
一个简单的C#后门程序实例,告诉你怎样去写一个后门程序。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Utilities;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
private KeyboardIncantationMonitor m_KeyBackDoor = new KeyboardIncantationMonitor();
public Form1()
{
InitializeComponent();
AddBackDoor();
}
private void Form1_Load(object sender EventArgs e)
{
}
private void AddBackDoor()
{
//! 第一个后门
do
{
//! 申请一个后门暗号
KeyboardIncantationMonitor.KeysIncantation tInc = m_KeyBackDoor.NewIncantation() as KeyboardIncantationMonitor.KeysIncantation;
//! 初始化这个暗号为:依次按下 HELLO
tInc.AddKey(Keys.Escape);
tInc.AddKey(Keys.H);
tInc.AddKey(Keys.E);
tInc.AddKey(Keys.L);
tInc.AddKey(Keys.L);
tInc.AddKey(Keys.O);
tInc.AddKey(Keys.Enter);
//! 对上暗号以后的处理程序
tInc.IncantationCantillatedReport += new IncantationReport(BackdoorHandler_A);
//! 将这个暗号添加到后门监视器里面
m_KeyBackDoor.AddIncantation(tInc);
}
while (false);
//! 第二个后门
do
{
//! 申请一个后门暗号
KeyboardIncantationMonitor.KeysIncantation tInc = m_KeyBackDoor.NewIncantation() as KeyboardIncantationMonitor.KeysIncantation;
//! 初始化这个暗号为:依次按下 Bye
tInc.AddKey(Keys.Escape);
tInc.AddKey(Keys.B);
tInc.AddKey(Keys.Y);
tInc.AddKey(Keys.E);
tInc.AddKey(Keys.Enter);
//! 对上暗号以后的处理程序
tInc.IncantationCantillatedReport += new IncantationReport(BackdoorHandler_B);
//! 将这个暗号添加到后门监视器里面
m_KeyBackDoor.AddIncantation(tInc);
}
while (false);
}
//! 第一个后门的处理程序
void BackdoorHandler_A(IIncantation tInc)
{
button1.Visible = true;
}
//! 第二个后门的处理程序
void BackdoorHandler_B(IIncantation tInc)
{
button1.Visible = false;
}
private void textBox1_KeyDown(object sender KeyEventArgs e)
{
m_KeyBackDoor.Append(e.KeyCode);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-02-23 16:01 WindowsApplication1\
文件 44544 2010-01-26 19:20 WindowsApplication1\Utilities.dll
目录 0 2010-02-23 16:02 WindowsApplication1\WindowsApplication1\
文件 946 2010-02-23 16:01 WindowsApplication1\WindowsApplication1.sln
文件 12800 2010-02-23 16:02 WindowsApplication1\WindowsApplication1.suo
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\bin\
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\bin\Debug\
文件 44544 2010-01-26 19:20 WindowsApplication1\WindowsApplication1\bin\Debug\Utilities.dll
文件 20480 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.exe
文件 26112 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.pdb
文件 5632 2005-09-23 06:04 WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.vshost.exe
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\bin\Release\
文件 2892 2010-02-23 16:02 WindowsApplication1\WindowsApplication1\Form1.cs
文件 2864 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\Form1.Designer.cs
文件 5814 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\Form1.resx
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\obj\
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\obj\Debug\
文件 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\obj\Debug\build.force
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\obj\Debug\TempPE\
文件 842 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.csproj.GenerateResource.Cache
文件 20480 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.exe
文件 180 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.Form1.resources
文件 26112 2010-02-23 15:40 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.pdb
文件 180 2010-02-23 15:36 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.Properties.Resources.resources
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\obj\Release\
文件 166 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\obj\WindowsApplication1.csproj.FileListAbsolute.txt
文件 519 2010-02-23 15:25 WindowsApplication1\WindowsApplication1\Program.cs
目录 0 2010-02-23 16:01 WindowsApplication1\WindowsApplication1\Properties\
文件 1477 2010-02-23 15:25 WindowsApplication1\WindowsApplication1\Properties\AssemblyInfo.cs
文件 3316 2010-02-23 15:25 WindowsApplication1\WindowsApplication1\Properties\Resources.Designer.cs
文件 5612 2010-02-23 15:25 WindowsApplication1\WindowsApplication1\Properties\Resources.resx
............此处省略3个文件信息
评论
共有 条评论