Advertisement
Guest User

Untitled

a guest
Mar 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.98 KB | None | 0 0
  1.  
  2. string mbInfo = String.Empty;
  3. ManagementScope scope = new ManagementScope("\\\\" + Environment.MachineName + "\\root\\cimv2");
  4. scope.Connect();
  5. ManagementObject wmiClass = new ManagementObject(scope, new ManagementPath("Win32_BaseBoard.Tag=\"Base Board\""), new ObjectGetOptions());
  6.  
  7. foreach (PropertyData propData in wmiClass.Properties)
  8. {
  9. if (propData.Name == "SerialNumber")
  10. mbInfo = String.Format("{0,-25}{1}", propData.Name, Convert.ToString(propData.Value));
  11. }
  12.  
  13. var replacement = mbInfo.Replace(mbInfo, "I"+_random66);
  14. MessageBox.Show(mbInfo);
  15.  
  16.  
  17.  
  18.  
  19.  
  20. List<string> CPU_ProcessorNameString = new List<string>();
  21. CPU_ProcessorNameString.Add("HP Intel Core i3 - 6100");
  22. CPU_ProcessorNameString.Add("IBM Intel Xeon E5620");
  23. CPU_ProcessorNameString.Add("Lenovo Intel Xeon Silver 4114");
  24. CPU_ProcessorNameString.Add("AMD Athlon 220GE Boxed");
  25. CPU_ProcessorNameString.Add("AMD Ryzen 5 2600X Wraith Max Boxed");
  26. CPU_ProcessorNameString.Add("AMD Ryzen 3 2300X Tray");
  27. Random randNum1 = new Random();
  28. int aRandomPos1 = randNum1.Next(CPU_ProcessorNameString.Count);
  29. string currCPU_P = CPU_ProcessorNameString[aRandomPos1];
  30. RegistryKey myKey1 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0", true);
  31. if (myKey1 != null)
  32. {
  33. myKey1.SetValue("ProcessorNameString", currCPU_P, RegistryValueKind.String);
  34. myKey1.Close();
  35. }
  36.  
  37. //Spoof WIN ID
  38. var chars = "0123456789";
  39. var stringChars = new char[5];
  40. var random = new Random();
  41.  
  42. for (int i = 0; i < stringChars.Length; i++)
  43. {
  44. stringChars[i] = chars[random.Next(chars.Length)];
  45. }
  46. var _random = new String(stringChars);
  47.  
  48. var chars3 = "0123456789";
  49. var stringChars3 = new char[5];
  50. var random3 = new Random();
  51.  
  52. for (int i = 0; i < stringChars3.Length; i++)
  53. {
  54. stringChars3[i] = chars3[random3.Next(chars3.Length)];
  55. }
  56. var _random3 = new String(stringChars3);
  57.  
  58. var chars2 = "0123456789";
  59. var stringChars2 = new char[4];
  60. var random2 = new Random();
  61.  
  62. for (int i = 0; i < stringChars2.Length; i++)
  63. {
  64. stringChars2[i] = chars2[random.Next(chars2.Length)];
  65. }
  66.  
  67. var _random2 = new String(stringChars2);
  68.  
  69. var chars1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  70. var stringChars1 = new char[5];
  71. var random1 = new Random();
  72.  
  73. for (int i = 0; i < stringChars1.Length; i++)
  74. {
  75. stringChars1[i] = chars1[random1.Next(chars1.Length)];
  76. }
  77.  
  78. var _random1 = new String(stringChars1);
  79.  
  80.  
  81. RegistryKey myKey20 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
  82. if (myKey20 != null)
  83. {
  84.  
  85. myKey20.SetValue("ProductId", _random + "-" + _random + "-" + _random + "-" + _random1, RegistryValueKind.String);
  86. myKey20.Close();
  87. }
  88. RegistryKey myKey30 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
  89. if (myKey30 != null)
  90. {
  91.  
  92. myKey30.SetValue("BuildLabEx", "17763.1.amd64fre.rs5_release.180914-" + _random2, RegistryValueKind.String);
  93. myKey30.Close();
  94. }
  95. RegistryKey myKey32 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
  96. if (myKey32 != null)
  97. {
  98.  
  99. myKey32.SetValue("BuildLab", "17763.rs5_release.180914-" + _random2, RegistryValueKind.String);
  100. myKey32.Close();
  101. }
  102. RegistryKey myKey21 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\DefaultProductKey", true);
  103. if (myKey21 != null)
  104. {
  105.  
  106.  
  107. WIN_CurrentVersion.Add("8.0");
  108. WIN_CurrentVersion.Add("9.0");
  109. WIN_CurrentVersion.Add("1.1");
  110. WIN_CurrentVersion.Add("1.2");
  111. WIN_CurrentVersion.Add("1.3");
  112. WIN_CurrentVersion.Add("1.4");
  113. WIN_CurrentVersion.Add("1.5");
  114. WIN_CurrentVersion.Add("1.6");
  115.  
  116.  
  117. Random randNum23 = new Random();
  118. int aRandomPos23 = randNum23.Next(WIN_CurrentVersion.Count);
  119. string currWIN_CV = WIN_CurrentVersion[aRandomPos23];
  120. RegistryKey myKey23 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
  121. if (myKey23 != null)
  122. {
  123.  
  124. List<string> WIN_EditionID = new List<string>();
  125. WIN_EditionID.Add("Professional");
  126. WIN_EditionID.Add("Enterprise");
  127. WIN_EditionID.Add("Pro");
  128. WIN_EditionID.Add("Home");
  129. Random randNum27 = new Random();
  130. int aRandomPos27 = randNum27.Next(WIN_CurrentVersion.Count);
  131. string currWIN_E = WIN_CurrentVersion[aRandomPos27];
  132. RegistryKey myKey27 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
  133. if (myKey27 != null)
  134. {
  135.  
  136. myKey27.SetValue("EditionID", currWIN_E, RegistryValueKind.String);
  137. myKey27.Close();
  138. }
  139. RegistryKey myKey28 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\SystemInformation", true);
  140. if (myKey28 != null)
  141. {
  142.  
  143. myKey28.SetValue("ComputerHardwareId", _random, RegistryValueKind.String);
  144. myKey28.Close();
  145. }
  146. RegistryKey myKey29 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DEVICEMAP\\Scsi\\Scsi Port 0\\Scsi Bus 0\\Target Id 0\\Logical Unit Id 0", true);
  147. if (myKey29 != null)
  148. {
  149.  
  150. myKey29.SetValue("Identifier", _random, RegistryValueKind.String);
  151. myKey29.Close();
  152. }
  153. RegistryKey myKey31 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DEVICEMAP\\Scsi\\Scsi Port 0\\Scsi Bus 1\\Target Id 0\\Logical Unit Id 0", true);
  154. if (myKey31 != null)
  155. {
  156.  
  157. myKey31.SetValue("Identifier", _random, RegistryValueKind.String);
  158. myKey31.Close();
  159. }
  160. //Spoof BIOS
  161. List<string> BIOS_BaseBoardProduct = new List<string>();
  162. BIOS_BaseBoardProduct.Add("MSI A320M PRO - E");
  163. BIOS_BaseBoardProduct.Add("Asus Prime A320M-C R2.0");
  164. BIOS_BaseBoardProduct.Add("Gigabyte GA - A320M - H");
  165. BIOS_BaseBoardProduct.Add("ASRock Z390 Phantom Gaming SLI");
  166. BIOS_BaseBoardProduct.Add("Asus ROG Rampage VI Extreme Omega");
  167. BIOS_BaseBoardProduct.Add("Asus Prime H310I - Plus R2.0");
  168. BIOS_BaseBoardProduct.Add("ASRock AB350M - HDV R3.0");
  169. BIOS_BaseBoardProduct.Add("MSI B450M Pro-VDH V2");
  170.  
  171. myKey.SetValue("BaseBoardProduct", currBIOS_B, RegistryValueKind.String);
  172. myKey.Close();
  173. }
  174.  
  175. List<string> BIOS_BaseBoardVersion = new List<string>();
  176. BIOS_BaseBoardVersion.Add("1.0");
  177. BIOS_BaseBoardVersion.Add("2.0");
  178. BIOS_BaseBoardVersion.Add("3.0");
  179. BIOS_BaseBoardVersion.Add("4.0");
  180. BIOS_BaseBoardVersion.Add("5.0");
  181. BIOS_BaseBoardVersion.Add("6.0");
  182. BIOS_BaseBoardVersion.Add("1.5");
  183. BIOS_BaseBoardVersion.Add("1.6");
  184. Random randNum2 = new Random();
  185. int aRandomPos2 = randNum2.Next(BIOS_BaseBoardVersion.Count);
  186. string currBIOS_V = BIOS_BaseBoardVersion[aRandomPos2];
  187. RegistryKey myKey2 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
  188. if (myKey2 != null)
  189. {
  190.  
  191. myKey2.SetValue("BaseBoardVersion", currBIOS_V, RegistryValueKind.String);
  192. myKey2.Close();
  193. }
  194.  
  195. List<string> BIOS_BaseBoardManufacturer = new List<string>();
  196. BIOS_BaseBoardManufacturer.Add("MSI");
  197. BIOS_BaseBoardManufacturer.Add("Asus");
  198. BIOS_BaseBoardManufacturer.Add("Gigabyte");
  199. BIOS_BaseBoardManufacturer.Add("ASRock");
  200. BIOS_BaseBoardManufacturer.Add("Biostar");
  201. BIOS_BaseBoardManufacturer.Add("EVGA");
  202. Random randNum3 = new Random();
  203. int aRandomPos3 = randNum3.Next(BIOS_BaseBoardManufacturer.Count);
  204. string currBIOS_BM = BIOS_BaseBoardManufacturer[aRandomPos3];
  205. RegistryKey myKey3 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
  206. if (myKey3 != null)
  207. {
  208.  
  209. myKey3.SetValue("BaseBoardManufacturer", currBIOS_BM, RegistryValueKind.String);
  210. myKey3.Close();
  211. }
  212. RegistryKey myKey5 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
  213. if (myKey5 != null)
  214. {
  215.  
  216. myKey5.SetValue("SystemVersion", currBIOS_V, RegistryValueKind.String);
  217. myKey5.Close();
  218. }
  219. RegistryKey myKey6 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
  220. if (myKey6 != null)
  221. {
  222.  
  223. myKey6.SetValue("SystemManufacturer", currBIOS_BM, RegistryValueKind.String);
  224. myKey6.Close();
  225. }
  226.  
  227. List<string> BIOS_BIOSReleaseDate = new List<string>();
  228. BIOS_BIOSReleaseDate.Add("01/02/2016");
  229. BIOS_BIOSReleaseDate.Add("01/04/2016");
  230. BIOS_BIOSReleaseDate.Add("01/03/2016");
  231. BIOS_BIOSReleaseDate.Add("01/05/2016");
  232. BIOS_BIOSReleaseDate.Add("02/05/2016");
  233. BIOS_BIOSReleaseDate.Add("03/05/2016");
  234. Random randNum4 = new Random();
  235. int aRandomPos4 = randNum4.Next(BIOS_BIOSReleaseDate.Count);
  236. string currBIOS_BR = BIOS_BIOSReleaseDate[aRandomPos4];
  237. RegistryKey myKey4 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
  238. if (myKey4 != null)
  239. {
  240.  
  241. myKey4.SetValue("BIOSReleaseDate", currBIOS_BR, RegistryValueKind.String);
  242. myKey4.Close();
  243. }
  244.  
  245.  
  246.  
  247. myKey8.SetValue("BIOSVersion", currBIOS_BV, RegistryValueKind.String);
  248. myKey8.Close();
  249. }
  250.  
  251. List<string> BIOS_BIOSVendor = new List<string>();
  252. BIOS_BIOSVendor.Add("American Megatrends Inc.");
  253. BIOS_BIOSVendor.Add("Dell Inc.");
  254. BIOS_BIOSVendor.Add("Phoenix Technologies, Ltd");
  255. BIOS_BIOSVendor.Add("Lenovo");
  256. BIOS_BIOSVendor.Add("Packard Bell");
  257. BIOS_BIOSVendor.Add("Award Software, Inc.");
  258. BIOS_BIOSVendor.Add("Acer");
  259. BIOS_BIOSVendor.Add("Insyde Corp.");
  260. BIOS_BIOSVendor.Add("TOSHIBA");
  261. BIOS_BIOSVendor.Add("Intel Corporation");
  262. BIOS_BIOSVendor.Add("IBM");
  263. BIOS_BIOSVendor.Add("innotek GmbH");
  264. BIOS_BIOSVendor.Add("Gateway");
  265. BIOS_BIOSVendor.Add("Sun Microsystems");
  266. Random randNum9 = new Random();
  267. int aRandomPos9 = randNum9.Next(BIOS_BIOSVendor.Count);
  268. string currBIOS_BVEN = BIOS_BIOSVendor[aRandomPos9];
  269. RegistryKey myKey9 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
  270. if (myKey9 != null)
  271. {
  272.  
  273. myKey9.SetValue("BIOSVendor", currBIOS_BVEN, RegistryValueKind.String);
  274. myKey9.Close();
  275. }
  276. RegistryKey myKey10 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  277. if (myKey10 != null)
  278. {
  279.  
  280. myKey10.SetValue("BIOSVendor", currBIOS_BVEN, RegistryValueKind.String);
  281. myKey10.Close();
  282. }
  283. RegistryKey myKey11 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  284. if (myKey11 != null)
  285. {
  286.  
  287. myKey11.SetValue("BIOSVersion", currBIOS_BV, RegistryValueKind.String);
  288. myKey11.Close();
  289. }
  290. RegistryKey myKey12 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  291. if (myKey12 != null)
  292. {
  293.  
  294. myKey12.SetValue("SystemProductName", currBIOS_S, RegistryValueKind.String);
  295. myKey12.Close();
  296. }
  297. RegistryKey myKey13 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  298. if (myKey13 != null)
  299. {
  300.  
  301. myKey13.SetValue("BIOSReleaseDate", currBIOS_BR, RegistryValueKind.String);
  302. myKey13.Close();
  303. }
  304. RegistryKey myKey14 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  305. if (myKey14 != null)
  306. {
  307.  
  308. myKey14.SetValue("SystemManufacturer", currBIOS_BM, RegistryValueKind.String);
  309. myKey14.Close();
  310. }
  311. RegistryKey myKey15 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  312. if (myKey15 != null)
  313. {
  314.  
  315. myKey15.SetValue("BaseBoardManufacturer", currBIOS_BM, RegistryValueKind.String);
  316. myKey15.Close();
  317. }
  318. RegistryKey myKey16 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  319. if (myKey16 != null)
  320. {
  321.  
  322. myKey16.SetValue("SystemVersion", currBIOS_V, RegistryValueKind.String);
  323. myKey16.Close();
  324. }
  325. RegistryKey myKey17 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  326. if (myKey17 != null)
  327. {
  328.  
  329. myKey17.SetValue("BaseBoardVersion", currBIOS_V, RegistryValueKind.String);
  330. myKey17.Close();
  331. }
  332. RegistryKey myKey18 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
  333. if (myKey18 != null)
  334. {
  335.  
  336. myKey18.SetValue("BaseBoardProduct", currBIOS_B, RegistryValueKind.String);
  337. myKey18.Close();
  338. }
  339. Guid id = Guid.NewGuid();
  340. RegistryKey myKey19 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\SystemInformation", true);
  341. if (myKey19 != null)
  342. {
  343.  
  344. myKey19.SetValue("ComputerHardwareId", "{"+id+"}", RegistryValueKind.String);
  345. myKey19.Close();
  346. }
  347.  
  348.  
  349. RegistryKey myKey44 = Registry.CurrentUser.OpenSubKey("Software\\Epic Games\\Unreal Engine\\Identifiers", true);
  350. if (myKey44 != null)
  351. {
  352.  
  353. myKey44.SetValue("AccountId", finalString12 + finalString12 + finalString12, RegistryValueKind.String);
  354. myKey44.Close();
  355. }
  356.  
  357. RegistryKey myKey41 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter\\0\\DiskController\\0\\DiskPeripheral\\0", true);
  358. if (myKey41 != null)
  359. {
  360.  
  361. myKey41.SetValue("Identifier", finalString12+"-A", RegistryValueKind.String);
  362. myKey41.Close();
  363. }
  364.  
  365. RegistryKey myKey42 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter\\0\\DiskController\\0\\DiskPeripheral\\1", true);
  366. if (myKey42 != null)
  367. {
  368.  
  369. myKey42.SetValue("Identifier", finalString12 +"-A", RegistryValueKind.String);
  370. myKey42.Close();
  371. }
  372. Guid guid_id = Guid.NewGuid();
  373. RegistryKey myKey43 = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Feeds", true);
  374. if (myKey43 != null)
  375. {
  376.  
  377. myKey43.SetValue("BackgroundSync", guid_id, RegistryValueKind.String);
  378. myKey43.Close();
  379. }
  380. try
  381. {
  382. RegistryKey myKey45 = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\IdentityCRL\\ExtendedProperties", true);
  383. if (myKey45 != null)
  384. {
  385.  
  386. myKey45.SetValue("LID", finalString13 + "BE" + "123", RegistryValueKind.String);
  387. myKey45.Close();
  388. }
  389. }
  390. catch { }
  391.  
  392.  
  393. RegistryKey myKey46 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName", true);
  394. if (myKey46 != null)
  395. {
  396.  
  397. myKey46.SetValue("ComputerName", finalString13, RegistryValueKind.String);
  398. myKey46.Close();
  399. }
  400.  
  401. RegistryKey myKey47 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName", true);
  402. if (myKey47 != null)
  403. {
  404.  
  405. myKey47.SetValue("ComputerName", finalString13, RegistryValueKind.String);
  406. myKey47.Close();
  407. }
  408.  
  409. RegistryKey myKey48 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName", true);
  410. if (myKey48 != null)
  411. {
  412.  
  413. myKey48.SetValue("Hostname", finalString13, RegistryValueKind.String);
  414. myKey48.SetValue("NV Hostname", finalString13, RegistryValueKind.String);
  415. myKey48.Close();
  416. }
  417.  
  418. var dir = AppDomain.CurrentDomain.BaseDirectory;
  419. string file = dir + "\\Assets\\HDDspoofer";
  420. try
  421. {
  422. Process.Start(file);
  423. }
  424. catch
  425. {
  426. MessageBox.Show("A file got deleted by your antivirus(mapper.exe), make sure to disable your antivirus before installing the spoofer. Please re-install the spoofer.");
  427. }
  428.  
  429. MessageBox.Show("Hardware has been succesfully spoofed");
  430.  
  431.  
  432.  
  433.  
  434. }
  435.  
  436. private void button3_Click(object sender, EventArgs e)
  437. {
  438. var dir122 = AppDomain.CurrentDomain.BaseDirectory;
  439. string file122 = dir122 + "\\Assets\\)Msh3d";
  440. Process.Start(file122);
  441.  
  442. }
  443. private void button4_Click(object sender, EventArgs e)
  444. {
  445.  
  446. var track1 = Path.Combine(Environment.GetFolderPath(
  447. Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Logs\\FortniteGame-backup-2019.02.02-10.35.16.log");
  448. if (File.Exists(track1))
  449. {
  450. File.Delete(track1);
  451. }
  452.  
  453. var track2 = Path.Combine(Environment.GetFolderPath(
  454. Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\LMS\\Manifest.sav");
  455. if (File.Exists(track2))
  456. {
  457. File.Delete(track2);
  458. }
  459.  
  460. var track3 = Path.Combine(Environment.GetFolderPath(
  461. Environment.SpecialFolder.LocalApplicationData), "Microsoft\\Feeds:KnownSources");
  462. if (File.Exists(track3))
  463. {
  464. File.Delete(track3);
  465. }
  466.  
  467. var track4 = Path.Combine(Environment.GetFolderPath(
  468. Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Config\\WindowsClient\\GameUserSettings.ini");
  469. if (File.Exists(track4))
  470. {
  471. File.Delete(track4);
  472. }
  473.  
  474. var track5 = Path.Combine(Environment.GetFolderPath(
  475. Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Config\\WindowsClient\\GameUserSettings.ini");
  476. if (File.Exists(track5))
  477. {
  478. File.Delete(track5);
  479. }
  480.  
  481. if (File.Exists(@"D:\desktop.ini:CachedTiles"))
  482.  
  483. {
  484. File.Delete(@"F:\desktop.ini:CachedTiles");
  485. }
  486.  
  487. var track6 = Path.Combine(Environment.GetFolderPath(
  488. Environment.SpecialFolder.LocalApplicationData), "EpicGamesLauncher\\Saved\\HardwareSurvey\\dxdiag.txt");
  489. if (File.Exists(track6))
  490. {
  491. File.Delete(track6);
  492. }
  493.  
  494. var dir = AppDomain.CurrentDomain.BaseDirectory;
  495. try
  496. {
  497. string file = dir + "Assets\\tempdelet";
  498. Process.Start(file);
  499. }
  500. catch
  501. {
  502.  
  503. }
  504.  
  505.  
  506. System.IO.DirectoryInfo di1 = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Logs"));
  507. try
  508. {
  509. foreach (FileInfo file1 in di1.GetFiles())
  510. {
  511. file1.Delete();
  512. }
  513. foreach (DirectoryInfo dir1 in di1.GetDirectories())
  514. {
  515. dir1.Delete(true);
  516. }
  517. }
  518. catch { }
  519.  
  520.  
  521. System.IO.DirectoryInfo di2 = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "EpicGamesLauncher\\Saved\\Logs"));
  522. try
  523. {
  524. foreach (FileInfo file2 in di2.GetFiles())
  525. {
  526. file2.Delete();
  527. }
  528. foreach (DirectoryInfo dir2 in di2.GetDirectories())
  529. {
  530. dir2.Delete(true);
  531. }
  532. }
  533. catch { }
  534.  
  535.  
  536. System.IO.DirectoryInfo di3 = new DirectoryInfo("D:\\MSOCache");
  537. try
  538. {
  539. foreach (DirectoryInfo dir3 in di3.GetDirectories())
  540. {
  541. dir3.Delete(true);
  542. }
  543. }
  544. catch { }
  545.  
  546. if (File.Exists(@"D:\Recovery\ntuser.sys"))
  547. {
  548. File.Delete(@"D:\Recovery\ntuser.sys");
  549. }
  550.  
  551. if (File.Exists(@"C:\Recovery\ntuser.sys"))
  552. {
  553. File.Delete(@"C:\Recovery\ntuser.sys");
  554. }
  555.  
  556. if (File.Exists(@"E:\Recovery\ntuser.sys"))
  557. {
  558. File.Delete(@"E:\Recovery\ntuser.sys");
  559. }
  560.  
  561. if (File.Exists(@"F:\Recovery\ntuser.sys"))
  562. {
  563. File.Delete(@"F:\Recovery\ntuser.sys");
  564. }
  565.  
  566. string driveLetter = Path.GetPathRoot(Environment.CurrentDirectory);
  567.  
  568. if (File.Exists(driveLetter + "\\Public\\Libraries\\collection.dat"))
  569. {
  570. File.Delete(driveLetter + "\\Public\\Libraries\\collection.dat");
  571. }
  572.  
  573. if (File.Exists(driveLetter + "\\Public\\Shared Files"))
  574. {
  575. File.Delete(driveLetter + "\\Public\\Shared Files");
  576. }
  577.  
  578. if (File.Exists(driveLetter + "\\MSOCache"))
  579. {
  580. File.Delete(driveLetter + "\\MSOCache");
  581. }
  582.  
  583. var currentuser = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
  584.  
  585. var currentProgramData = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
  586. if (File.Exists(currentProgramData + "\\Epic\\EpicGamesLauncher\\Data\\EMS\\current"))
  587. {
  588. File.Delete(currentProgramData + "\\Epic\\EpicGamesLauncher\\Data\\EMS\\current");
  589. }
  590. }
  591.  
  592. System.IO.DirectoryInfo di4 = new DirectoryInfo(@"C:\Users\paulu\AppData\Roaming\EasyAntiCheat");
  593. try
  594. {
  595. foreach (DirectoryInfo dir4 in di4.GetDirectories())
  596. {
  597. dir4.Delete(true);
  598. }
  599. }
  600. catch { }
  601.  
  602.  
  603.  
  604. try
  605. {
  606. DirectoryInfo di_m99 = new DirectoryInfo(currentProgramData + @"\Epic\SocialBackup");
  607. FileInfo[] files99 = di_m99.GetFiles("*.bak")
  608. .Where(p => p.Extension == ".bak").ToArray();
  609. foreach (FileInfo file99 in files99)
  610. try
  611. {
  612. file99.Attributes = FileAttributes.Normal;
  613. if (File.Exists(file99.FullName))
  614. {
  615. File.Delete(file99.FullName);
  616. }
  617.  
  618. }
  619. catch { }
  620.  
  621. }
  622. catch
  623. {
  624.  
  625. }
  626.  
  627.  
  628.  
  629.  
  630.  
  631. var dir10 = AppDomain.CurrentDomain.BaseDirectory;
  632. try
  633. {
  634. string file10 = dir10 + "Assets\\main_cleaner";
  635. Process.Start(file10);
  636. }
  637. catch
  638. {
  639. MessageBox.Show("A file has been deleted, please re-install the software.");
  640. }
  641.  
  642. {
  643. MessageBox.Show("A file has been deleted, please re-install the software.");
  644. }
  645.  
  646. Guid id = Guid.NewGuid();
  647.  
  648. RegistryKey myKey54 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Cryptography", true);
  649. if (myKey54 != null)
  650. {
  651. myKey54.SetValue("MachineGuid", id, RegistryValueKind.String);
  652. myKey54.Close();
  653. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement