'Added URLs to oppsec command'

chunking
benpturner 2018-09-25 16:46:44 +01:00
parent 1facec0f90
commit db30db9705
1 changed files with 4 additions and 1 deletions

View File

@ -210,9 +210,12 @@ def startup(printhelp = ""):
comtasks = get_completedtasks() comtasks = get_completedtasks()
hosts = "" hosts = ""
uploads = "" uploads = ""
urls = ""
for i in implants: for i in implants:
if i[3] not in hosts: if i[3] not in hosts:
hosts += "%s \n" % i[3] hosts += "%s \n" % i[3]
if i[9] not in urls:
urls += "%s \n" % i[9]
for t in comtasks: for t in comtasks:
hostname = get_implantdetails(t[2]) hostname = get_implantdetails(t[2])
if "Upload-File" in t[3]: if "Upload-File" in t[3]:
@ -226,7 +229,7 @@ def startup(printhelp = ""):
line = line.replace('\r','') line = line.replace('\r','')
filenameuploaded = line.rstrip().split(":",1)[1] filenameuploaded = line.rstrip().split(":",1)[1]
uploads += "%s %s \n" % (hostname[3], filenameuploaded) uploads += "%s %s \n" % (hostname[3], filenameuploaded)
startup("Hosts Compromised: %s\nFiles Uploaded: \n%s" % (hosts, uploads)) startup("Hosts Compromised: \n%s\nURLs: \n%s\nFiles Uploaded: \n%s" % (hosts, urls, uploads))
if "listmodules" in implant_id.lower(): if "listmodules" in implant_id.lower():
mods = "" mods = ""
for modname in os.listdir("%s/Modules/" % POSHDIR): for modname in os.listdir("%s/Modules/" % POSHDIR):