Skip to content

Commit 677d070

Browse files
committed
make tlv enum of migrate length consistent
1 parent ff2b8dc commit 677d070

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rex/post/meterpreter/client_core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def migrate(target_pid, writable_dir = nil, opts = {})
509509
end
510510

511511
request.add_tlv( TLV_TYPE_MIGRATE_PID, target_pid )
512-
request.add_tlv( TLV_TYPE_MIGRATE_PAYLOAD_LEN, migrate_payload.length )
512+
request.add_tlv( TLV_TYPE_MIGRATE_LEN, migrate_payload.length )
513513
request.add_tlv( TLV_TYPE_MIGRATE_PAYLOAD, migrate_payload, false, client.capabilities[:zlib])
514514
request.add_tlv( TLV_TYPE_MIGRATE_STUB_LEN, migrate_stub.length )
515515
request.add_tlv( TLV_TYPE_MIGRATE_STUB, migrate_stub, false, client.capabilities[:zlib])

lib/rex/post/meterpreter/packet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module Meterpreter
8080
TLV_TYPE_LIBRARY_PATH = TLV_META_TYPE_STRING | 400
8181
TLV_TYPE_TARGET_PATH = TLV_META_TYPE_STRING | 401
8282
TLV_TYPE_MIGRATE_PID = TLV_META_TYPE_UINT | 402
83-
TLV_TYPE_MIGRATE_PAYLOAD_LEN = TLV_META_TYPE_UINT | 403
83+
TLV_TYPE_MIGRATE_LEN = TLV_META_TYPE_UINT | 403
8484
TLV_TYPE_MIGRATE_PAYLOAD = TLV_META_TYPE_STRING | 404
8585
TLV_TYPE_MIGRATE_ARCH = TLV_META_TYPE_UINT | 405
8686
TLV_TYPE_MIGRATE_BASE_ADDR = TLV_META_TYPE_UINT | 407

0 commit comments

Comments
 (0)