def do_classes_by_signature(self, msg): """Returns the list of all the classes by signature (TODO).""" signature = parser.pack_string("Ljava/lang/String;") data = self.send_command("VM::ClassesBySignature", data=signature) print("TODO") print(str(data))
def set_default_stratum(self, stratum_id=""): """Set the default stratum. Whatever that means.""" data = parser.pack_string(stratum_id) self.send_command("VM::Resume", data=data)
def create_string(self, s): """Creates a new string object in the target VM and returns its id.""" packed_s = parser.pack_string(s) response = self.send_command("VM::CreateString", data=packed_s) unpacked = parser.unpack(response, "o") return unpacked.pop()