mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-30 22:19:17 +02:00
Land #475, Set nMaxInstances to 1 for named pipes
This commit is contained in:
commit
16e2c2d52b
@ -56,7 +56,7 @@ DWORD THREADCALL elevate_namedpipe_thread(THREAD * thread)
|
|||||||
|
|
||||||
// create the named pipe for the client service to connect to
|
// create the named pipe for the client service to connect to
|
||||||
hPipe = CreateNamedPipe(cpPipeName,
|
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) {
|
if (!hPipe) {
|
||||||
BREAK_ON_ERROR("[ELEVATE] elevate_namedpipe_thread. CreateNamedPipe failed");
|
BREAK_ON_ERROR("[ELEVATE] elevate_namedpipe_thread. CreateNamedPipe failed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user