def do_kill_implant(user, command, randomuri): impid = get_implantdetails(randomuri) ri = input("Are you sure you want to terminate the implant ID %s? (Y/n) " % impid.ImplantID) if ri.lower() == "n": print("Implant not terminated") if ri == "" or ri.lower() == "y": pid = get_pid(randomuri) new_task("kill -9 %s" % pid, user, randomuri) kill_implant(randomuri)
def do_kill_process(user, command, randomuri): impid = get_implantdetails(randomuri) print_bad("**OPSEC Warning** - kill-process will terminate the entire process, if you want to kill the thread only use kill-implant") ri = input("Are you sure you want to terminate the implant ID %s? (Y/n) " % impid.ImplantID) if ri.lower() == "n": print("Implant not terminated") if ri == "" or ri.lower() == "y": pid = impid.PID new_task("get-process -id %s | kill" % (pid), user, randomuri) kill_implant(randomuri)
def do_kill_implant(user, command, randomuri): impid = get_implantdetails(randomuri) print_bad( "**OPSEC Warning** - kill-implant terminates the current threat not the entire process, if you want to kill the process use kill-process" ) ri = input("Are you sure you want to terminate the implant ID %s? (Y/n) " % impid.ImplantID) if ri.lower() == "n": print("Implant not terminated") if ri == "" or ri.lower() == "y": pid = impid.PID new_task("exit", user, randomuri) kill_implant(randomuri)