Exploit database

GH-ccdfd8c10c71264828731c08683767b4

manhndd/cve-2019-6329

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-6329

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files4
manhndd/cve-2019-6329Revision 747472e2ac57

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

Source/CreateProcess.cpp

C++ · 678 bytes
#include <Windows.h>
#include <stdio.h>

int main(int argc, char** argv)
{
	if (argc != 2) {
		fprintf(stderr, "Usage: %s <ExePath> #create process and exit\n", argv[0]);
		return 1;
	}
	STARTUPINFOA si;//STARTUPINFOA is the ANSI version of STARTUPINFO.
	PROCESS_INFORMATION pi;
	ZeroMemory(&si, sizeof(STARTUPINFOA));
	ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
	si.cb = sizeof(STARTUPINFOA);

	if (!CreateProcessA(NULL, argv[1], NULL, NULL, false, 0, NULL, NULL, &si, &pi))
	{
		fprintf(stderr, "Failed to create process '%s', error: 0x%x!\n", argv[1], GetLastError());
		return 1;
	}
	CloseHandle(pi.hThread);
	CloseHandle(pi.hProcess);
	return 0;
}