I want to exploit it myself though, in my schools network to gain admin access someway or to execute commands, well this is what i have so far
Code:
#include <windows.h>
#include <iostream>
int main()
{
char szPath[] ="C:\\WINDOWS\\SYSTEM32\\MSG.EXE";
char CommandString[NULL];
std::cout<<"Please enter command argument:";
std::cin>>CommandString;
PROCESS_INFORMATION pif;
STARTUPINFO si;
ZeroMemory(&si,sizeof(si));
si.cb=sizeof(si);
BOOL bRet=CreateProcess(
szPath,
CommandString,
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pif);
if (bRet==FALSE)
{
MessageBox(HWND_DESKTOP,"Unable to start program","Error",MB_OK);
return 1;
}
CloseHandle(pif.hProcess);
CloseHandle(pif.hThread);
return 0;
}
thanks for the FAQ dwks but this isnt working for some reason