#include "stdafx.h" #include "iostream" #include "conio.h" #define WINDOWS_LEAN_AND_MEAN #include <Windows.h> // Activator Windows in C++ By Javad // winphone.ir using namespace std; int wmain(int argc, wchar_t *argv[]) { auto myConsole = GetConsoleWindow(); ShowWindow(myConsole, 0); if ((argc > 1) && ((*argv[1] == L'-' || (*argv[1] == L'/')))) { // Windows 10 Product Injection //w10enterprise switch activator shoma - name switch dekhah ast Example: test.exe /w10enterprise baraye faal sazi windows 10 Enterprise if (_wcsicmp(L"w10enterprise", argv[1] + 1) == 0) { system("Netsh Advfirewall Firewall add rule name=mpkkms dir=in action=allow protocol=TCP localport=1688 >nul 2>&1"); system("cscript.exe /nologo %WINDIR%/System32/slmgr.vbs /skms x.x.x.x"); // IP Server or Domain Server KMS system("cscript.exe /nologo %WINDIR%/System32/slmgr.vbs /ipk xxxx-xxxx-xxxx-xxxx-xxxx"); // Serial Windows Mored nazar system("cscript.exe /nologo %WINDIR%/System32/slmgr.vbs /ato >> result.log"); system("cscript.exe /nologo %WINDIR%/System32/slmgr.vbs /xpr >> result.log"); } else if (_wcsicmp(L"w10enterpriseN", argv[1] + 1) == 0) { } else if (_wcsicmp(L"w10enterpriseLTSB", argv[1] + 1) == 0) { } else if (_wcsicmp(L"w10enterpriseLTSBN", argv[1] + 1) == 0) { } return 0; } }