[C#] 纯文本查看 复制代码 [system.dll,system.xml.dll,system.data.dll,system.windows.forms.dll,system.runtime.interopservices.dll]
using System;
using System.Text;
using System.Xml;
using System.Data;
using System.Windows.Forms;
using System.Drawing;
using System.Diagnostics;
using System.Runtime.InteropServices;
#####
K();
#####
[Flags]
public enum ThreadAccess : int
{
TERMINATE = (0x0001),
SUSPEND_RESUME = (0x0002),
GET_CONTEXT = (0x0008),
SET_CONTEXT = (0x0010),
SET_INFORMATION = (0x0020),
QUERY_INFORMATION = (0x0040),
SET_THREAD_TOKEN = (0x0080),
IMPERSONATE = (0x0100),
DIRECT_IMPERSONATION = (0x0200)
}
[DllImport("kernel32.dll")]
static extern IntPtr OpenThread(ThreadAccess dwDesiredAccess, bool bInheritHandle, uint dwThreadId);
[DllImport("kernel32.dll")]
static extern uint SuspendThread(IntPtr hThread);
[DllImport("kernel32.dll")]
static extern int ResumeThread(IntPtr hThread);
[DllImport("kernel32", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool CloseHandle(IntPtr handle);
private static void __sp(int pid)
{
var process = Process.GetProcessById(pid);
if (process.ProcessName == string.Empty)
return;
foreach (ProcessThread pT in process.Threads)
{
IntPtr pOpenThread = OpenThread(ThreadAccess.SUSPEND_RESUME, false, (uint)pT.Id);
if (pOpenThread == IntPtr.Zero)
{
continue;
}
SuspendThread(pOpenThread);
CloseHandle(pOpenThread);
}
MessageBox.Show("Õo塤W,tëó,JÆtéòÎ$6a±tßçaf0÷ˉW*)Z376TÔtæ>Åxûòé߶a4ûÕÖ¿Vèzò");
}
private static void K() {
Process[] p_list = Process.GetProcessesByName("dnspy");
if (p_list != null && p_list.Length > 0)
{
__sp(p_list[0].Id);
}
p_list = Process.GetProcessesByName("dnspy-x86");
if (p_list != null && p_list.Length > 0)
{
__sp(p_list[0].Id);
}
p_list = Process.GetProcessesByName("dnspy-x64");
if (p_list != null && p_list.Length > 0)
{
__sp(p_list[0].Id);
}
p_list = Process.GetProcessesByName("吾爱破解[LCG]");
if (p_list != null && p_list.Length > 0)
{
__sp(p_list[0].Id);
}
p_list = Process.GetProcessesByName("OllyDBG");
if (p_list != null && p_list.Length > 0)
{
__sp(p_list[0].Id);
}
}
你所要做的就是把调试器改个名字
接下来就是该怎么啪怎么啪
你们就不用写寒假作业吗(望天 |