Skip to content

Commit 700dfee

Browse files
committed
Land rapid7#8584, remove meterpreter TLVs for dead code
2 parents c0efb7b + a48f0fc commit 700dfee

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/rex/post/meterpreter/packet.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ module Meterpreter
106106
TLV_TYPE_MACHINE_ID = TLV_META_TYPE_STRING | 460
107107
TLV_TYPE_UUID = TLV_META_TYPE_RAW | 461
108108

109-
TLV_TYPE_CIPHER_NAME = TLV_META_TYPE_STRING | 500
110-
TLV_TYPE_CIPHER_PARAMETERS = TLV_META_TYPE_GROUP | 501
111-
112109
#
113110
# Core flags
114111
#

spec/lib/rex/post/meterpreter/packet_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
context "Any non group TLV_TYPE" do
8585
subject(:tlv_types){
86-
excludedTypes = ["TLV_TYPE_ANY", "TLV_TYPE_EXCEPTION", "TLV_TYPE_CHANNEL_DATA_GROUP", "TLV_TYPE_TRANS_GROUP", "TLV_TYPE_CIPHER_PARAMETERS"]
86+
excludedTypes = ["TLV_TYPE_ANY", "TLV_TYPE_EXCEPTION", "TLV_TYPE_CHANNEL_DATA_GROUP", "TLV_TYPE_TRANS_GROUP"]
8787
typeList = []
8888
Rex::Post::Meterpreter.constants.each do |type|
8989
typeList << type.to_s if type.to_s.include?("TLV_TYPE") && !excludedTypes.include?(type.to_s)

0 commit comments

Comments
 (0)