-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
42 lines (36 loc) · 1.08 KB
/
Program.cs
File metadata and controls
42 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.IO;
using CsharpFunctionDumper.CLRProcessing.MetaDataStreams.Signatures;
namespace CsharpFunctionDumper
{
class Program
{
public static void Main(string [] args)
{
string inPath = "";
string outPath = "";
for (int i = 0; i < args.Length; i+=0)
{
string argument = args[i];
switch (argument)
{
case "--in":
{
inPath = args[i + 1];
i += 2;
continue;
}
case "--out":
{
outPath = args[i + 1];
i += 2;
continue;
}
}
i += 1;
}
ProcessedPEFile funcData = ProcessedPEFile.ProcessFile(inPath);
File.WriteAllText(outPath, funcData.GetOutput());
}
}
}