1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00

Land #475, Set nMaxInstances to 1 for named pipes

This commit is contained in:
Spencer McIntyre 2021-03-04 13:31:43 -05:00
commit 16e2c2d52b
No known key found for this signature in database
GPG Key ID: 58101BA0D0D9C987

View File

@ -56,7 +56,7 @@ DWORD THREADCALL elevate_namedpipe_thread(THREAD * thread)
// create the named pipe for the client service to connect to
hPipe = CreateNamedPipe(cpPipeName,
PIPE_ACCESS_DUPLEX, PIPE_TYPE_MESSAGE|PIPE_WAIT, 2, 0, 0, 0, NULL);
PIPE_ACCESS_DUPLEX, PIPE_TYPE_MESSAGE|PIPE_WAIT, 1, 0, 0, 0, NULL);
if (!hPipe) {
BREAK_ON_ERROR("[ELEVATE] elevate_namedpipe_thread. CreateNamedPipe failed");