Added pwd alias

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

View File

@ -2799,6 +2799,14 @@ except Exception as e:
msg = "Tasked agent to cat file %s" % (line) msg = "Tasked agent to cat file %s" % (line)
self.mainMenu.agents.save_agent_log(self.sessionID, msg) 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): def do_whoami(self, line):
"Print the currently logged in user" "Print the currently logged in user"