Commit bda25208 authored by fimap.dev's avatar fimap.dev

Added new command getPWD() to haxhelper.

parent c30e08fe
......@@ -1000,6 +1000,10 @@ class HaxHelper:
""" Give this command a array of system-commands and it will concat them for the vulnerable system. """
return(self.generic_lang.concatCommands(commands, self.isunix))
def getPWD(self):
""" Returns the current directory on the remote server. """
return(self.executeSystemCommand(self.getPWDCommand()))
def getPWDCommand(self):
""" Returns a `pwd` command for the vulnerable server. """
return(self.generic_lang.getCurrentDirCode(self.isunix))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment