diff --git a/lib/common/empire.py b/lib/common/empire.py index 5ede89c..d674ee0 100644 --- a/lib/common/empire.py +++ b/lib/common/empire.py @@ -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"