我用的Reflector工具反编的一个.NET程序
找到关键地方代码 ,但不知道怎么修改了保存
照着这个帖子学http://www.unpack.cn/viewthread.php?tid=29410&highlight=.net
引用:
3.用ilasm ppp.il /RESOURCE=ppp.res 编译为 ppp.exe
运行ppp.exe 不需要注册了 ,破解完成!
我自己把xxx.il修改好后,编译成exe的出问题了
public static void main()
{
Errorinf errorinf = new Errorinf();
Form form = new Form();
form.set_FormBorderStyle(4);
form.set_ShowInTaskbar(false);
form.set_TopMost(true);
form.set_Height(50);
form.set_Width(300);
form.set_ControlBox(false);
form.set_StartPosition(1);
form.Show();
Application.DoEvents();
Graphics graphics = form.CreateGraphics();
Application.DoEvents();
graphics.DrawString("系统正在检查服务,请稍候... ...", form.get_Font(), new SolidBrush(Color.get_Black()), 20f, 15f);
Sleep(100);
try
{
Cls_sc _sc = new Cls_sc("SQLSERVERAGENT");
if (StringType.StrCmp(_sc.GetServiceStatus(), "R", false) != 0)
{
Application.DoEvents();
graphics.Clear(form.get_BackColor());
graphics.DrawString("系统正在启动服务,请稍候... ...", form.get_Font(), new SolidBrush(Color.get_Black()), 20f, 15f);
Sleep(0x3e8);
_sc.StartService();
}
_sc.ExitController();
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
errorinf.WriteErr("ccyt_mod->main", Information.Err().get_Description());
ProjectData.ClearProjectError();
}
graphics.Clear(form.get_BackColor());
graphics.DrawString("系统检查服务完成.", form.get_Font(), new SolidBrush(Color.get_Black()), 20f, 15f);
Sleep(100);
Application.DoEvents();
graphics.Clear(form.get_BackColor());
graphics.DrawString("系统正在检查加密锁,请稍候... ...", form.get_Font(), new SolidBrush(Color.get_Black()), 20f, 15f);
Sleep(100);
Application.DoEvents();
pub_study = false;
Pub_student = false;
pub_isShowver = true;
Pub_showdog = true;
if (!Pub_student)
{
if (Pub_showdog)
{
Pub_BbbDog = true;
Module_Dog dog = new Module_Dog();
if (dog.OpenSense3() > 0)
{
dog.CloseSense3();
Interaction.MsgBox("系统没有找到加密狗,请检查加密狗是否已经安装!", IntegerType.FromString(StringType.FromInteger(0) + StringType.FromInteger(0x40)), "提示:");
Pub_BbbDog = false;
graphics.Dispose();
form.Dispose();
ProjectData.EndApp();
}
else
{
Module_Dog.Sense3AutoData data = new Module_Dog.Sense3AutoData();
dog.WriteMemory0(data);
if (dog.ReadMemory0(data) > 0)
{
Interaction.MsgBox("系统没有找到加密狗,请检查加密狗是否已经安装!", IntegerType.FromString(StringType.FromInteger(0) + StringType.FromInteger(0x40)), "提示:");
Pub_BbbDog = false;
graphics.Dispose();
form.Dispose();
ProjectData.EndApp();
}
}
dog.CloseSense3();
}
}
else
{
web_dog = new cls_webdog();
if (!web_dog.Log_in("68311430"))
{
Interaction.MsgBox("系统没有检测到网络狗服务,请检查", 0x40, "提示");
ProjectData.EndApp();
}
}
Application.DoEvents();
graphics.Clear(form.get_BackColor());
graphics.DrawString("系统正在检查加密锁完成.", form.get_Font(), new SolidBrush(Color.get_Black()), 20f, 15f);
Sleep(100);
Application.DoEvents();
Pub_ClientName = Environment.get_MachineName();
try
{
Pub_ClientName = Dns.Resolve(Pub_ClientName).get_AddressList()[0].ToString().Replace(".", "_");
}
catch (Exception exception6)
{
ProjectData.SetProjectError(exception6);
errorinf.WriteErr("ccyt_mod->main", Information.Err().get_Description());
ProjectData.ClearProjectError();
。。。。。。
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)
上传的附件: