Added pwd alias

readme-wiki
xorrior 2017-11-30 07:50:18 -08:00
parent 211d365aa4
commit c95cc7cddd
1 changed files with 8 additions and 0 deletions

View File

@ -2749,6 +2749,14 @@ except Exception as e:
msg = "Tasked agent to cat file %s" % (line)
self.mainMenu.agents.save_agent_log(self.sessionID, msg)
def do_pwd(self, line):
"Print working directory"
command = "cwd = os.getcwd(); print cwd"
self.mainMenu.agents.add_agent_task_db(self.sessionID, "TASK_CMD_WAIT", command)
msg = "Tasked agent to print current working directory"
self.mainMenu.agents.save_agent_log(self.sessionID, msg)
def do_whoami(self, line):
"Print the currently logged in user"