<==========================radixvictim.cpp===============================>
// radixvictim.cpp : Defines the entry point for the application. //
#define _WIN32_WINNT 0x0500 #define UNICODE
#include #include #include #include
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow = SW_SHOW) { // TODO: Place code here.
LPCWSTR lpUsername = L"Administrator"; // user's name LPCWSTR lpDomain = L"dallas"; // user's domain LPCWSTR lpPassword = L"moda"; // user's password DWORD dwLogonFlags = LOGON_NETCREDENTIALS_ONLY; // logon option LPCWSTR lpApplicationName = L"D:\\Winnt\\NotePad.exe"; LPWSTR lpCommandLine = L"NotePad.exe"; // command-line string DWORD dwCreationFlags = CREATE_NEW_CONSOLE; // creation flags LPVOID lpEnvironment = NULL; // new environment block LPCWSTR lpCurrentDirectory = NULL; // current directory name STARTUPINFO StartupInfo; // startup information PROCESS_INFORMATION ProcessInfo; // process information
BOOL ret;
ZeroMemory(&StartupInfo, sizeof(StartupInfo)); StartupInfo.cb = sizeof(StartupInfo); ZeroMemory(&ProcessInfo, sizeof(ProcessInfo));
ret = CreateProcessWithLogonW( lpUsername, lpDomain, lpPassword, dwLogonFlags, lpApplicationName, lpCommandLine, dwCreationFlags, lpEnvironment, lpCurrentDirectory, &StartupInfo, &ProcessInfo );
if (! ret ) ExitProcess (GetLastError()) ;
return 0; } 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页
|