Updated listmodules view

chunking 4.6
benpturner 2018-12-29 12:47:57 +00:00
parent 7dd87d6f0a
commit c9e0cc9c92
2 changed files with 4 additions and 0 deletions

View File

@ -372,6 +372,7 @@ public class Program
if (c.ToLower().StartsWith("listmodules")){ if (c.ToLower().StartsWith("listmodules")){
var appd = AppDomain.CurrentDomain.GetAssemblies(); var appd = AppDomain.CurrentDomain.GetAssemblies();
output += "[+] Modules loaded: \n\n";
foreach (var ass in appd) foreach (var ass in appd)
{ {
output += ass.FullName.ToString() + "\n"; output += ass.FullName.ToString() + "\n";

View File

@ -580,6 +580,9 @@ def runcommand(command, randomuri):
elif "listmodules" in command.lower(): elif "listmodules" in command.lower():
modules = os.listdir("%s/Modules/" % POSHDIR) modules = os.listdir("%s/Modules/" % POSHDIR)
print ("")
print ("[+] Available modules:")
print ("")
for mod in modules: for mod in modules:
if (".exe" in mod) or (".dll" in mod) : if (".exe" in mod) or (".dll" in mod) :
print (mod) print (mod)