From 3332a27af8cd6b7e356c03a5014be6ffcc06b2de Mon Sep 17 00:00:00 2001 From: cod Date: Thu, 1 Aug 2024 09:03:54 +0200 Subject: [PATCH 1/2] typo --- c/meterpreter/source/metsrv/base_dispatch.c | 4 ++-- c/meterpreter/source/metsrv/server_transport_tcp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c/meterpreter/source/metsrv/base_dispatch.c b/c/meterpreter/source/metsrv/base_dispatch.c index fe8e06461..7a5328368 100644 --- a/c/meterpreter/source/metsrv/base_dispatch.c +++ b/c/meterpreter/source/metsrv/base_dispatch.c @@ -33,7 +33,7 @@ void set_transport_session_expiry(Remote* remote, Packet* packet) } } -DWORD create_transport_from_request(Remote* remote, Packet* packet, Transport** transportBufer) +DWORD create_transport_from_request(Remote* remote, Packet* packet, Transport** transportBuffer) { DWORD result = ERROR_NOT_ENOUGH_MEMORY; Transport* transport = NULL; @@ -160,7 +160,7 @@ DWORD create_transport_from_request(Remote* remote, Packet* packet, Transport** result = ERROR_SUCCESS; } while (0); - *transportBufer = transport; + *transportBuffer = transport; return result; } diff --git a/c/meterpreter/source/metsrv/server_transport_tcp.c b/c/meterpreter/source/metsrv/server_transport_tcp.c index a502bc91f..0ee756b30 100644 --- a/c/meterpreter/source/metsrv/server_transport_tcp.c +++ b/c/meterpreter/source/metsrv/server_transport_tcp.c @@ -831,7 +831,7 @@ void transport_write_tcp_config(Transport* transport, MetsrvTransportTcp* config * @param targetProcessId ID of the process that we will be migrating into. * @param targetProcessHandle Handle to the target process. * @param contextSize Buffer that will receive the size of the generated context. - * @param contextBufer Buffer that will receive the generated context. + * @param contextBuffer Buffer that will receive the generated context. * @return Indication of success or failure. */ static DWORD get_migrate_context_tcp(Transport* transport, DWORD targetProcessId, HANDLE targetProcessHandle, LPDWORD contextSize, LPBYTE* contextBuffer) From 446b4d18c3b4841926d75944d6cad10c14281890 Mon Sep 17 00:00:00 2001 From: cod Date: Mon, 12 Aug 2024 16:03:55 +0200 Subject: [PATCH 2/2] typo in context --- c/meterpreter/source/metsrv/server_pivot_named_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/meterpreter/source/metsrv/server_pivot_named_pipe.c b/c/meterpreter/source/metsrv/server_pivot_named_pipe.c index e1a769f4b..88fdef6ed 100644 --- a/c/meterpreter/source/metsrv/server_pivot_named_pipe.c +++ b/c/meterpreter/source/metsrv/server_pivot_named_pipe.c @@ -618,7 +618,7 @@ static DWORD server_notify(Remote* remote, LPVOID entryContext, LPVOID threadCon serverCtx->established = TRUE; - // The current listener cotnext in the listeners tree points to the server instance that has now + // The current listener context in the listeners tree points to the server instance that has now // become a client instance due to the new connection. Therefore we need to update the pivot tree context // to point to the new listener on the named pipe. PivotContext* listenerCtx = pivot_tree_find(remote->pivot_listeners, (LPBYTE)&serverCtx->pivot_id);