From 7e50ce09c0b16de71ca772ade3c2447c93dbba58 Mon Sep 17 00:00:00 2001 From: OJ Date: Sat, 21 Jan 2017 09:17:20 +1000 Subject: [PATCH] Fix TLV inspect issue --- lib/rex/post/meterpreter/packet.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/rex/post/meterpreter/packet.rb b/lib/rex/post/meterpreter/packet.rb index 97b485add8..cf44f0e863 100644 --- a/lib/rex/post/meterpreter/packet.rb +++ b/lib/rex/post/meterpreter/packet.rb @@ -87,7 +87,7 @@ TLV_TYPE_MIGRATE_BASE_ADDR = TLV_META_TYPE_UINT | 407 TLV_TYPE_MIGRATE_ENTRY_POINT = TLV_META_TYPE_UINT | 408 TLV_TYPE_MIGRATE_SOCKET_PATH = TLV_META_TYPE_STRING | 409 TLV_TYPE_MIGRATE_STUB_LEN = TLV_META_TYPE_UINT | 410 -TLV_TYPE_MIGRATE_STUB = TLV_META_TYPE_STRING | 411 +TLV_TYPE_MIGRATE_STUB = TLV_META_TYPE_STRING | 411 TLV_TYPE_TRANS_TYPE = TLV_META_TYPE_UINT | 430 @@ -195,9 +195,14 @@ class Tlv when TLV_TYPE_LIBRARY_PATH; "LIBRARY-PATH" when TLV_TYPE_TARGET_PATH; "TARGET-PATH" when TLV_TYPE_MIGRATE_PID; "MIGRATE-PID" - when TLV_TYPE_MIGRATE_LEN; "MIGRATE-LEN" + when TLV_TYPE_MIGRATE_PAYLOAD_LEN; "MIGRATE-PAYLOAD-LEN" when TLV_TYPE_MIGRATE_PAYLOAD; "MIGRATE-PAYLOAD" when TLV_TYPE_MIGRATE_ARCH; "MIGRATE-ARCH" + when TLV_TYPE_MIGRATE_BASE_ADDR; "MIGRATE-BASE-ADDR" + when TLV_TYPE_MIGRATE_ENTRY_POINT; "MIGRATE-ENTRY-POINT" + when TLV_TYPE_MIGRATE_STUB_LEN; "MIGRATE-STUB-LEN" + when TLV_TYPE_MIGRATE_STUB; "MIGRATE-STUB" + when TLV_TYPE_MIGRATE_SOCKET_PATH; "MIGRATE-SOCKET-PATH" when TLV_TYPE_TRANS_TYPE; "TRANS-TYPE" when TLV_TYPE_TRANS_URL; "TRANS-URL" when TLV_TYPE_TRANS_COMM_TIMEOUT; "TRANS-COMM-TIMEOUT"