File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 90
90
#
91
91
class Metasploit3 < Msf ::Encoder
92
92
93
- #
94
- # In some cases, payloads can be an invalid size that is incompatible with
95
- # this encoder
96
- #
97
- class InvalidPayloadSizeException < ::Exception
98
- def initialize ( msg )
99
- @msg = msg
100
- end
101
-
102
- def to_s
103
- @msg
104
- end
105
- end
106
-
107
93
# This encoder has a manual ranking because it should only be used in cases
108
94
# where information has been explicitly supplied, like the BufferOffset.
109
95
Rank = ManualRanking
@@ -136,7 +122,7 @@ def decoder_stub(state)
136
122
137
123
# Check to make sure that the length is a valid size
138
124
if is_badchar ( state , len )
139
- raise InvalidPayloadSizeException . new ( "The payload being encoded is of an incompatible size (#{ len } bytes)" )
125
+ raise EncodingError . new ( "The payload being encoded is of an incompatible size (#{ len } bytes)" )
140
126
end
141
127
142
128
decoder =
You can’t perform that action at this time.
0 commit comments