Skip to content

Commit

Permalink
Remove lcd and lpwd commands (move as aliases)
Browse files Browse the repository at this point in the history
  • Loading branch information
nil0x42 committed Aug 20, 2014
1 parent 12254a4 commit 7df8ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 46 deletions.
2 changes: 2 additions & 0 deletions data/config/config
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ alias target "set TARGET"
alias load "session load"
alias save "session save"
alias infect "exploit"
alias lcd "lrun cd"
alias lpwd "lrun pwd"


### Some configuration examples you may want to add:
Expand Down
46 changes: 0 additions & 46 deletions src/ui/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,52 +381,6 @@ def do_session(self, argv):
else:
print(session(argv[1]))

#################
# COMMAND: lpwd #
def do_lpwd(self, argv):
"""Print local working directory
SYNOPSIS:
lpwd
DESCRIPTION:
Display the local working directory from your own local
operating system. This command works like the `pwd`
command in unix shells.
NOTE: This core command shouldn't be confused with the
`pwd` plugin, which does the same thing in the
remotely exploited system.
"""
print(os.getcwd())

################
# COMMAND: lcd #
def do_lcd(self, argv):
"""Change local working directory
SYNOPSIS:
lcd <LOCAL DIRECTORY>
DESCRIPTION:
Change the local working directory from your own local
operating system. This command works like the `cd`
command in unix shells.
NOTE: This core command shouldn't be confused with the
`cd` plugin, which does the same thing in the
remotely exploited system.
EXAMPLES:
> lcd ~
> lcd /tmp
"""
# only one argument must be supplied
if len(argv) != 2:
return self.interpret('help lcd')

os.chdir(os.path.expanduser(argv[1]))

#################
# COMMAND: lrun #
def do_lrun(self, argv):
Expand Down

0 comments on commit 7df8ff4

Please sign in to comment.