forked from Mamadou627/Discord-Nitro-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
141 lines (135 loc) · 4.6 KB
/
Program.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Colorful;
namespace NitroChecker
{
// Token: 0x02000004 RID: 4
internal class Program
{
// Token: 0x0600000E RID: 14 RVA: 0x00002794 File Offset: 0x00000994
[STAThread]
private static void Main(string[] args)
{
Program.Menu(args);
}
// Token: 0x0600000F RID: 15 RVA: 0x000027A0 File Offset: 0x000009A0
private static void Menu(string[] args)
{
Colorful.Console.WriteAscii("Stan Generator", Color.FromArgb(251, 51, 0));
Colorful.Console.Title = (Colorful.Console.Title = "[Nitro Generator & Checker] | Make by Stanley#0001");
Thread.Sleep(250);
Colorful.Console.WriteLine("[1] Cree des codes nitros", Color.Orange);
Colorful.Console.WriteLine("[2] Check les codes nitros", Color.Orange);
Colorful.Console.WriteLine();
Colorful.Console.Write("", Color.DarkOrange);
string text = System.Console.ReadLine();
string text2 = text;
if (text2 != null)
{
if (!(text2 == "1"))
{
if (text2 == "2")
{
Colorful.Console.WriteLine();
Colorful.Console.Write("Combien de", Color.Orange);
Colorful.Console.Write("THREADS", Color.Orange);
Colorful.Console.Write(" voulez-vous utilisez", Color.Orange);
Colorful.Console.Write(": ", Color.Orange);
try
{
CheckerHelper.threads = int.Parse(Colorful.Console.ReadLine());
}
catch
{
CheckerHelper.threads = 100;
}
for (;;)
{
Colorful.Console.Write("> Quel type de ", Color.Orange);
Colorful.Console.Write("PROXIES ", Color.White);
Colorful.Console.Write("[HTTP, SOCKS4, SOCKS5, NO]", Color.DarkMagenta);
Colorful.Console.Write(": ", Color.DarkMagenta);
CheckerHelper.proxytype = Colorful.Console.ReadLine();
CheckerHelper.proxytype = CheckerHelper.proxytype.ToUpper();
bool flag = CheckerHelper.proxytype == "HTTP" || CheckerHelper.proxytype == "SOCKS4" || CheckerHelper.proxytype == "SOCKS5" || CheckerHelper.proxytype == "NO";
if (flag)
{
break;
}
Colorful.Console.Write("> Choisis un format valide.\n\n", Color.Red);
Thread.Sleep(2000);
}
Task.Factory.StartNew(delegate()
{
CheckerHelper.UpdateTitle();
});
Colorful.Console.WriteLine();
CheckerHelper.accounts = new List<string>(File.ReadAllLines("codes.txt"));
CheckerHelper.LoadCodes();
Colorful.Console.Write("> ");
Colorful.Console.Write(CheckerHelper.total, Color.DarkMagenta);
Colorful.Console.WriteLine(" Codes nitros ajouté\n");
OpenFileDialog openFileDialog = new OpenFileDialog();
bool flag2 = CheckerHelper.proxytype != "NO";
if (flag2)
{
string fileName;
do
{
Colorful.Console.WriteLine("Choisissez vos proxys", Color.DarkMagenta);
Thread.Sleep(500);
openFileDialog.Title = "Select Proxy List";
openFileDialog.DefaultExt = "txt";
openFileDialog.Filter = "Text files|*.txt";
openFileDialog.RestoreDirectory = true;
openFileDialog.ShowDialog();
fileName = openFileDialog.FileName;
}
while (!File.Exists(fileName));
CheckerHelper.proxies = new List<string>(File.ReadAllLines(fileName));
CheckerHelper.LoadProxies(fileName);
Colorful.Console.Write("> ");
Colorful.Console.Write(CheckerHelper.proxytotal, Color.DarkMagenta);
Colorful.Console.WriteLine(" Proxies ajouté\n");
}
for (int i = 1; i <= CheckerHelper.threads; i++)
{
new Thread(new ThreadStart(CheckerHelper.Check)).Start();
}
Colorful.Console.ReadLine();
Environment.Exit(0);
}
}
else
{
Colorful.Console.WriteLine();
Colorful.Console.Write("Combien de ", Color.Orange);
Colorful.Console.Write("CODES", Color.Orange);
Colorful.Console.Write(" voulez vous générez", Color.Orange);
Colorful.Console.Write(": ", Color.Orange);
try
{
GenerateHelper.amount = int.Parse(Colorful.Console.ReadLine());
}
catch
{
GenerateHelper.amount = 50000;
}
Task.Factory.StartNew(delegate()
{
GenerateHelper.Generate();
}).Wait();
Colorful.Console.WriteLine("Générez avec succès, retour au hub...", Color.Green);
Thread.Sleep(2000);
Program.Main(args);
System.Console.ReadLine();
}
}
}
}
}