-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathHalosGateResolver.cs
31 lines (29 loc) · 931 Bytes
/
HalosGateResolver.cs
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
using System;
using HalosGateResolver.Handler;
namespace HalosGateResolver
{
class HalosGateResolver
{
static void Main(string[] args)
{
var options = new CommandLineParser();
try
{
options.SetTitle("HalosGateResolver - Tool to resolve syscall number with Halo's Gate techniques.");
options.AddFlag(false, "h", "help", "Displays this help message.");
options.AddParameter(true, "n", "name", null, "Specifies syscall name to resolve.");
options.Parse(args);
Execute.Run(options);
}
catch (InvalidOperationException ex)
{
Console.WriteLine(ex.Message);
}
catch (ArgumentException ex)
{
options.GetHelp();
Console.WriteLine(ex.Message);
}
}
}
}