.NET 逆向求教
最新学习.NET 网上找了个.NET 的DLL 控件 脱壳之后View.<>c__DisplayClass25_0 CS$<>8__locals1 = new View.<>c__DisplayClass25_0();
CS$<>8__locals1.view_0 = this; 不理解 这是啥意思 求各位老师指点
private void View_Load(object sender, EventArgs e) {
View.<>c__DisplayClass25_0 CS$<>8__locals1 = new View.<>c__DisplayClass25_0();
CS$<>8__locals1.view_0 = this;
if (!base.DesignMode)
{
this.timer_0.Enabled = true;
this.timer_1.Enabled = true;
Class4.string_0 = (this.string_1 = this.method_0());
if (Convert.ToInt32(INIOperationClass.INIGetStringValue(this.string_1 + "\\config.ini", "Setting", "Lng", "").Trim()) == 2)
{
Class4.qMwhKqroo5 = "ALGVIEWEXENU";
}
CS$<>8__locals1.string_0 = INIOperationClass.INIGetStringValue(this.string_1 + "\\config.ini", "Authorization", "RegisterCode", "").Trim();
Task.Run(new Action(CS$<>8__locals1.method_0));
Class4.bool_0 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(this.string_1 + "\\config.ini", "Setting", "Run", "").Trim());
if (!Class4.bool_0)
{
this.button_3.BackgroundImage = Resources.imgStopRed28px;
}
else
{
this.button_3.BackgroundImage = Resources.imgStartGreen32px;
}
Class4.int_0 = Convert.ToInt32(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Setting", "Filter", ""));
Class4.string_1 = INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Setting", "AlarmArea", "");
Class4.bool_1 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "1", ""));
Class4.bool_2 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "2", ""));
Class4.bool_3 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "3", ""));
Class4.bool_4 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "4", ""));
Class4.bool_5 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "5", ""));
Class4.bool_6 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "6", ""));
Class4.bool_7 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "7", ""));
Class4.bool_8 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "8", ""));
Class4.bool_9 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "9", ""));
Class4.bool_10 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "10", ""));
}
} 这个我遇到过,只需要吧View.<>c__DisplayClass25_0 CS$<>8__locals1 = new View.<>c__DisplayClass25_0();改成
View view1 = new View();就行 罗萨 发表于 2023-10-7 11:18
这个我遇到过,只需要吧View.c__DisplayClass25_0 CS$8__locals1 = new View.c__DisplayClass25_0();改成
...
好的 谢谢 我试试 if (!Class4.bool_0)
{
this.button_3.BackgroundImage = Resources.imgStopRed28px;
}
else
{
this.button_3.BackgroundImage = Resources.imgStartGreen32px;
}
我觉得这里挺好玩的,你可以改成
if (!Class4.bool_0)
{
this.button_3.BackgroundImage = Resources.imgStartGreen32px;
}
试试
但应该没什么用。。。。只是显示一个绿色图标吧? private void View_Load(object sender, EventArgs e)
{
if (!base.DesignMode)
{
timer_0.Enabled = true;
timer_1.Enabled = true;
Class4.string_0 = (string_1 = method_0());
if (Convert.ToInt32(INIOperationClass.INIGetStringValue(string_1 + "\\config.ini", "Setting", "Lng", "").Trim()) == 2)
{
Class4.qMwhKqroo5 = "ALGVIEWEXENU";
}
string string_0 = INIOperationClass.INIGetStringValue(string_1 + "\\config.ini", "Authorization", "RegisterCode", "").Trim();
Task.Run(delegate
{
LIS.GetLis(string_1, string_0);
});
Class4.bool_0 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(string_1 + "\\config.ini", "Setting", "Run", "").Trim());
if (!Class4.bool_0)
{
button_3.BackgroundImage = Resources.imgStopRed28px;
}
else
{
button_3.BackgroundImage = Resources.imgStartGreen32px;
}
Class4.int_0 = Convert.ToInt32(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Setting", "Filter", ""));
Class4.string_1 = INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Setting", "AlarmArea", "");
Class4.bool_1 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "1", ""));
Class4.bool_2 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "2", ""));
Class4.bool_3 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "3", ""));
Class4.bool_4 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "4", ""));
Class4.bool_5 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "5", ""));
Class4.bool_6 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "6", ""));
Class4.bool_7 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "7", ""));
Class4.bool_8 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "8", ""));
Class4.bool_9 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "9", ""));
Class4.bool_10 = Convert.ToBoolean(INIOperationClass.INIGetStringValue(Class4.string_0 + "\\config.ini", "Msg", "10", ""));
}
} 以前拷贝别人的代码的时候遇到过这种问题
其实这种带有<>的就是在当前类声明了一个其他类(实例化用的),但是没有实例化.
在方法里面实例化了之后才能使用
但是dnspy在识别的时候只是识别到了这个类,没有实例化具体对象,所以就随便起了个名字
比如有一个名字是"旺财",在没有描述他具体相貌长相的时候你分不清他是人还是狗,或者是其他动物,他只是占了一个位置
只有在正常写描述的时候打上标识,它是一个松鼠的名字,然后其他方法调用这个对象的时候,才知道,
哦~,原来它是一个松鼠
这就好比老板告诉你接一个人"只给了名字",但是没有告诉你相貌之类的信息,直到那个人已经到了出站口,老板才告诉你他的相貌和特征信息 请教个问题:dll文件反编译修改后,放到项目中启动修改的内容没有起作用是什么原因?有办法解决吗?
页:
[1]