Fixed issue 421 in reflectivepeinjection module

mdns
Chris 2016-12-11 21:43:19 -05:00
parent 2d96a72460
commit 3148493e15
2 changed files with 6 additions and 1 deletions

View File

@ -1624,7 +1624,8 @@ class PowerShellAgentMenu(cmd.Cmd):
if line != "":
# task the agent with this shell command
self.mainMenu.agents.add_agent_task_db(self.sessionID, "TASK_SHELL", "shell " + str(line))
self.mainMenu.agents.add_agent_ta
sk_db(self.sessionID, "TASK_SHELL", "shell " + str(line))
# update the agent log
msg = "Tasked agent to run shell command " + line
self.mainMenu.agents.save_agent_log(self.sessionID, msg)

View File

@ -101,6 +101,10 @@ class Module:
script += "\nInvoke-ReflectivePEInjection"
#check if dllpath or PEUrl is set. Both are required params in their respective parameter sets.
if self.options['DllPath']['Value'] == "" or self.options['PEUrl']['Value'] == "":
print helpers.color("[!] Please provide a PEUrl or DllPath")
return ""
for option,values in self.options.iteritems():
if option.lower() != "agent":
if option.lower() == "dllpath":