Fixed issue 421 in reflectivepeinjection module
parent
2d96a72460
commit
3148493e15
|
@ -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)
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue