def run(self): hci = self.args["iface"] name = "DirtytoothSpeaker" if self.args['name']: name = self.args['name'] if Task.get_instance().exist_task("dirtyagent"): print_info("A dirtyagent is running... Kill it first") return tool = "hciconfig" options = [f"{hci} name {name}", f"{hci} reset", f"{hci} class {self.args['class']}",f"{hci} noauth", f"{hci} piscan"] for op in options: system(tool + " " + op) new_process_function(run_agent, name="dirtyagent") #new_process_command("./utils/dirtytooth/dirtyagent", name="dirtyagent")
def can_run_dirtytooth(): return Task.get_instance().exist_task("dirtyagent")