MCPcopy
hub / github.com/knownsec/pocsuite3 / decode

Method decode

pocsuite3/lib/helper/java/serialization.py:155–161  ·  view source on GitHub ↗
(self, io)

Source from the content-addressed store, hash-verified

153 self.description = None
154
155 def decode(self, io):
156 content = decode_content(io, self.stream)
157 allowed_content = [NullReference, NewClassDesc, Reference, ProxyClassDesc]
158 if content.__class__ not in allowed_content:
159 raise Exception('ClassDesc unserialize failed')
160 self.description = content
161 return self
162
163 def encode(self):
164 encoded = ''

Callers 6

decodeMethod · 0.95
decodeMethod · 0.95
decodeMethod · 0.95
decodeMethod · 0.95
decodeMethod · 0.95
decodeMethod · 0.95

Calls 1

decode_contentFunction · 0.85

Tested by

no test coverage detected