CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/shellcode/windows/speech/Speak.cpp
Views: 11784
1
#include <Objbase.h>
2
#include <sapi.h>
3
4
int wmain( int argc, wchar_t *argv[ ], wchar_t *envp[ ] ) {
5
ISpVoice * pVoice = NULL;
6
DWORD iid_ispvoice[] = {0x6c44df74, 0x499272b9, 0x99efeca1, 0xd422046e};
7
DWORD clsid_spvoice[] = {0x96749377, 0x11d23391, 0xc000e39e, 0x9673794f};
8
DWORD clsctx_all = 0x17;
9
10
::CoInitialize(NULL);
11
12
CoCreateInstance((REFCLSID)clsid_spvoice, NULL, clsctx_all, (REFIID)iid_ispvoice, (void **)&pVoice);
13
pVoice->Speak(argv[1], 0, NULL);
14
return TRUE;
15
}
16
17