mirror of
https://github.com/lsecqt/OffensiveCpp
synced 2026-06-08 15:34:26 +00:00
Create ShellExecuteEx.cpp
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include <windows.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
SHELLEXECUTEINFOW info = { sizeof(SHELLEXECUTEINFOW) };
|
||||
info.lpFile = L"cmd.exe";
|
||||
info.lpParameters = L"/c whoami";
|
||||
info.nShow = SW_HIDE;
|
||||
info.lpVerb = L"open";
|
||||
::ShellExecuteEx(&info);
|
||||
}
|
||||
Reference in New Issue
Block a user