From 4f0c9407d2d7114f6e4f7318f99b5fb04f8a09cb Mon Sep 17 00:00:00 2001 From: OJ Date: Thu, 8 Dec 2016 16:46:50 +1000 Subject: [PATCH] Adjust TLV lable in POSIX to match updates --- c/meterpreter/source/common/arch/posix/base_dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/meterpreter/source/common/arch/posix/base_dispatch.c b/c/meterpreter/source/common/arch/posix/base_dispatch.c index 6db3ce0c..6471deca 100644 --- a/c/meterpreter/source/common/arch/posix/base_dispatch.c +++ b/c/meterpreter/source/common/arch/posix/base_dispatch.c @@ -31,7 +31,7 @@ remote_request_core_migrate(Remote *remote, Packet *packet) // Get the target process architecture to inject into l.arch = packet_get_tlv_value_uint(packet, TLV_TYPE_MIGRATE_ARCH); // Get the length of the library buffer - l.length = packet_get_tlv_value_uint(packet, TLV_TYPE_MIGRATE_LEN); + l.length = packet_get_tlv_value_uint(packet, TLV_TYPE_MIGRATE_PAYLOAD_LEN); // Receive the actual migration library buffer l.data = packet_get_tlv_value_string(packet, TLV_TYPE_MIGRATE_PAYLOAD); // Get the library entry point