Files
metasploit-gs/external/source/shellcode/windows/speech/Speak.cpp
T
HD Moore 4971a0d7af Add Skylined's "You Got Pwned" payload
git-svn-id: file:///home/svn/framework3/trunk@11485 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-06 17:34:09 +00:00

16 lines
518 B
C++

#include <Objbase.h>
#include <sapi.h>
int wmain( int argc, wchar_t *argv[ ], wchar_t *envp[ ] ) {
ISpVoice * pVoice = NULL;
DWORD iid_ispvoice[] = {0x6c44df74, 0x499272b9, 0x99efeca1, 0xd422046e};
DWORD clsid_spvoice[] = {0x96749377, 0x11d23391, 0xc000e39e, 0x9673794f};
DWORD clsctx_all = 0x17;
::CoInitialize(NULL);
CoCreateInstance((REFCLSID)clsid_spvoice, NULL, clsctx_all, (REFIID)iid_ispvoice, (void **)&pVoice);
pVoice->Speak(argv[1], 0, NULL);
return TRUE;
}