MCPcopy Create free account
hub / github.com/Tencent/loli_profiler / invoke

Method invoke

python/jdwp-shellifier.py:336–348  ·  view source on GitHub ↗
(self, obj_id, thread_id, class_id, method_id, *args)

Source from the content-addressed store, hash-verified

334 return buf
335
336 def invoke(self, obj_id, thread_id, class_id, method_id, *args):
337 data = self.format(self.objectIDSize, obj_id)
338 data += self.format(self.objectIDSize, thread_id)
339 data += self.format(self.referenceTypeIDSize, class_id)
340 data += self.format(self.methodIDSize, method_id)
341 data += struct.pack(">I", len(args))
342 for arg in args:
343 data += arg
344 data += struct.pack(">I", 0)
345
346 self.socket.sendall(self.create_packet(INVOKEMETHOD_SIG, data=data))
347 buf = self.read_reply()
348 return buf
349
350 def invoke_void(self, obj_id, thread_id, class_id, method_id, *args):
351 data = self.format(self.objectIDSize, obj_id)

Callers 2

runtime_exec_payloadFunction · 0.80
get_package_nameFunction · 0.80

Calls 3

formatMethod · 0.95
create_packetMethod · 0.95
read_replyMethod · 0.95

Tested by

no test coverage detected