As part of a reverse-engineering challenge on Hackthebox.eu I've tried to decompile a .net executable file. The entire program decompiled successfully but it has two errors. I will post below the whole method.
private unsafe void kapa(object sender, EventArgs e)
{
int num1 = 0;
this.z = "";
this.o = "";
this.m = "";
int num2;
IntPtr num3 = (IntPtr) &num2;
int num4;
int* numPtr1 = &num4;
int num5;
int* numPtr2 = &num5;
int num6;
int* numPtr3 = &num6;
int num7;
int* numPtr4 = &num7;
int num8;
int* numPtr5 = &num8;
int num9;
int* numPtr6 = &num9;
int* numPtr7 = &num1;
int num10 = 79;
*(int*) num3 = num10;
*numPtr1 = 128;
*numPtr2 = 128;
*numPtr3 = 105;
*numPtr4 = 112;
*numPtr5 = 112;
*numPtr6 = 129;
*numPtr7 = 130;
this.pp = num2;
this.linear(this.pp);
}
There is an error on this line:
"'IntPtr' is a type, which is not valid in the given context"
IntPtr num3 = (IntPtr) &num2;
and then an error for an undefined variable num2.
Is this an error in DotPeek?