From 0b25e8d9f8efaf2260a4f473d0a32002b383abe6 Mon Sep 17 00:00:00 2001 From: benpturner Date: Wed, 31 Oct 2018 15:43:02 +0000 Subject: [PATCH] 'Updated opsec command to add users compromised' --- ImplantHandler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ImplantHandler.py b/ImplantHandler.py index 547e3b6..bfa2025 100644 --- a/ImplantHandler.py +++ b/ImplantHandler.py @@ -292,6 +292,7 @@ def startup(printhelp = ""): hosts = "" uploads = "" urls = "" + users = "" for i in implants: if i[3] not in hosts: hosts += "%s \n" % i[3] @@ -299,6 +300,8 @@ def startup(printhelp = ""): urls += "%s \n" % i[9] for t in comtasks: hostname = get_implantdetails(t[2]) + if hostname[2] not in users: + users += "%s \n" % hostname[2] if "Upload-File" in t[3]: uploadedfile = t[3] uploadedfile = uploadedfile.partition("estination ")[2] @@ -310,7 +313,7 @@ def startup(printhelp = ""): line = line.replace('\r','') filenameuploaded = line.rstrip().split(":",1)[1] uploads += "%s %s \n" % (hostname[3], filenameuploaded) - startup("Hosts Compromised: \n%s\nURLs: \n%s\nFiles Uploaded: \n%s" % (hosts, urls, uploads)) + startup("Users Compromised: %s\nHosts Compromised: \n%s\nURLs: \n%s\nFiles Uploaded: \n%s" % (users, hosts, urls, uploads)) if "listmodules" in implant_id.lower(): mods = "" for modname in os.listdir("%s/Modules/" % POSHDIR):