'Updated opsec command to add users compromised'

chunking
benpturner 2018-10-31 15:43:02 +00:00
parent 4e88b8b0bd
commit 0b25e8d9f8
1 changed files with 4 additions and 1 deletions

View File

@ -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):