forked from paradox1337x/LithiumNukerV2-Open-Source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntry.cs
121 lines (118 loc) · 2.77 KB
/
Entry.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
using System;
using System.Drawing;
using System.Net;
using Veylib.CLIUI;
namespace LithiumNukerV2
{
// Token: 0x02000004 RID: 4
internal class Entry
{
// Token: 0x0600000B RID: 11 RVA: 0x000028AC File Offset: 0x00000AAC
private static void parseArgs(string[] args)
{
for (int i = 0; i < args.Length; i++)
{
string a = args[i].ToLower();
if (!(a == "--debug"))
{
if (!(a == "--token"))
{
if (!(a == "--guild"))
{
if (!(a == "--threads"))
{
if (!(a == "--connection-limit"))
{
Entry.core.WriteLine(new object[]
{
Color.Red,
"Invalid argument: " + args[i].ToLower()
});
}
else
{
i++;
int connectionLimit;
if (!int.TryParse(args[i], out connectionLimit))
{
Entry.core.WriteLine(new object[]
{
Color.Red,
"--connection-limit argument value invalid"
});
}
Settings.ConnectionLimit = connectionLimit;
}
}
else
{
i++;
int threads;
if (!int.TryParse(args[i], out threads))
{
Entry.core.WriteLine(new object[]
{
Color.Red,
"--threads argument value invalid"
});
}
Settings.Threads = threads;
}
}
else
{
i++;
long value;
if (!long.TryParse(args[i], out value))
{
Entry.core.WriteLine(new object[]
{
Color.Red,
"--guild argument value invalid"
});
}
Settings.GuildId = new long?(value);
}
}
else
{
i++;
Settings.Token = args[i];
}
}
else
{
Settings.Debug = true;
}
}
}
// Token: 0x0600000C RID: 12 RVA: 0x00002A34 File Offset: 0x00000C34
private static void Main(string[] args)
{
Core.StartupProperties startProperties = new Core.StartupProperties
{
MOTD = "fuck skids | verlox & russian heavy on top",
ColorRotation = 260,
SilentStart = true,
LogoString = Settings.Logo,
DebugMode = Settings.Debug,
Author = new Core.StartupAuthorProperties
{
Url = "verlox.cc & russianheavy.xyz",
Name = "verlox & russian heavy"
},
Title = new Core.StartupConsoleTitleProperties
{
Text = "Lithium Nuker V2"
}
};
Entry.core.Start(startProperties);
Entry.parseArgs(args);
ServicePointManager.DefaultConnectionLimit = Settings.ConnectionLimit;
ServicePointManager.Expect100Continue = false;
Picker.Choose();
}
// Token: 0x0400000F RID: 15
public static Core core = Core.GetInstance();
}
}