Updated listmodules and modulesloaded command

chunking
benpturner 2018-12-29 12:37:32 +00:00
parent baf5994a02
commit 7dd9ff5812
2 changed files with 13 additions and 1 deletions

View File

@ -44,6 +44,7 @@ pwd
loadmodule Seatbelt.exe
loadmoduleforce
listmodule
modulesloaded
arpscan 172.16.0.1/24 true
get-serviceperms c:\\temp\\
run-dll Seatbelt.Program Seatbelt UserChecks
@ -391,4 +392,4 @@ COMMANDS += ['invoke-psexecdaisypayload','invoke-wmidaisypayload', 'invoke-dcomd
UXCOMMANDS = ["unhide-implant","hide-implant","help","searchhelp","python","loadmodule","loadmoduleforce","get-keystrokes","back","upload-file","download-file","install-persistence","remove-persistence","sai","startanotherimplant-keepfile","get-screenshot","startanotherimplant","pwd","id","ps","setbeacon","kill-implant"]
SHARPCOMMANDS = ["get-serviceperms","unhide-implant","arpscan","ls","pwd","dir","inject-shellcode","start-process","run-exe","run-dll","hide-implant","help","searchhelp","listmodules","loadmodule","loadmoduleforce","back","ps","beacon","setbeacon","kill-implant"]
SHARPCOMMANDS = ["modulesloaded","get-serviceperms","unhide-implant","arpscan","ls","pwd","dir","inject-shellcode","start-process","run-exe","run-dll","hide-implant","help","searchhelp","listmodules","loadmodule","loadmoduleforce","back","ps","beacon","setbeacon","kill-implant"]

View File

@ -578,6 +578,17 @@ def runcommand(command, randomuri):
params = params.sub("", command)
check_module_loaded(params, randomuri)
elif "listmodules" in command.lower():
modules = os.listdir("%s/Modules/" % POSHDIR)
for mod in modules:
if ".exe" in mod:
print (mod)
new_task(command,randomuri)
elif "modulesloaded" in command.lower():
ml = get_implantdetails(randomuri)
print (ml[14])
elif command.lower() == "help" or command == "?" or command.lower() == "help ":
print (sharp_help1)