Answer the question
In order to leave comments, you need to log in
How to decompile, modify and compile back (C#)?
There is a C# program.
After decompilation, the following code was obtained:
using System;
using System.Runtime.CompilerServices;
namespace DateReverse
{
internal class Program
{
[Serializable]
[CompilerGenerated]
private sealed class <>c
{
public static readonly Program.<>c <>9;
public static Func<int,byte> <>9__2_0;
static <>c()
{
Program.<>c.<>9 = new Program.<>c();
}
public <>c()
{
}
internal byte <GetFlag>b__2_0(int x)
{
// trial
return 0;
}
} // class <>c
[CompilerGenerated]
private sealed class <>c__DisplayClass2_0
{
public byte[] key;
public <>c__DisplayClass2_0()
{
}
internal byte <GetFlag>b__1(byte t, int i)
{
return (t ^ key[i]);
}
} // class <>c__DisplayClass2_0
private static Random rand;
public Program()
{
}
static Program()
{
Program.rand = new Random(50616);
}
private static string GetFlag()
{
// trial
return null;
}
public static void Main(string[] args)
{
DateTime dateTime = DateTime.Now;
Console.WriteLine((dateTime.DayOfYear == 94) && (dateTime.Year == 2016) && (dateTime.DayOfWeek == DayOfWeek.Friday) ? Program.GetFlag() : "Sorry, try it another day");
}
} // class Program
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question