diff --git a/c/meterpreter/source/extensions/networkpug/networkpug.c b/c/meterpreter/source/extensions/networkpug/networkpug.c index 8ed2311a..c230ea65 100644 --- a/c/meterpreter/source/extensions/networkpug/networkpug.c +++ b/c/meterpreter/source/extensions/networkpug/networkpug.c @@ -460,8 +460,8 @@ DWORD __declspec(dllexport) InitServerExtension(Remote *remote) peername6 = NULL; peername_len = sizeof(peername); - if (remote->transport->get_socket) { - getpeername(remote->transport->get_socket(remote->transport), &peername, &peername_len); + if (remote->transport->get_handle) { + getpeername(remote->transport->get_handle(remote->transport), &peername, &peername_len); } else { // TODO: not sure what to do here. diff --git a/c/meterpreter/source/extensions/sniffer/sniffer.c b/c/meterpreter/source/extensions/sniffer/sniffer.c index 1047f78e..2a9bc4ff 100644 --- a/c/meterpreter/source/extensions/sniffer/sniffer.c +++ b/c/meterpreter/source/extensions/sniffer/sniffer.c @@ -769,8 +769,8 @@ DWORD __declspec(dllexport) InitServerExtension(Remote *remote) peername4 = NULL; peername6 = NULL; peername_len = sizeof(peername); - if (remote->transport->get_socket) { - getpeername(remote->transport->get_socket(remote->transport), &peername, &peername_len); + if (remote->transport->get_handle) { + getpeername(remote->transport->get_handle(remote->transport), &peername, &peername_len); if(peername.sa_family == PF_INET) peername4 = (struct sockaddr_in *)&peername; dprintf("[SERVER] Getting the IPv6 peer name of our socket...");