Skip to content

Commit

Permalink
core: remove clear command (issue #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
nil0x42 committed Feb 13, 2019
1 parent 58c9570 commit 25a913e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
1 change: 1 addition & 0 deletions data/config/config
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ alias save "session save"
alias infect "exploit"
alias lcd "lrun cd"
alias lpwd "lrun pwd"
alias clear "lrun clear"
alias fileinfo "stat"
alias backdoor "exploit --get-backdoor"

Expand Down
2 changes: 1 addition & 1 deletion phpsploit
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def main() -> int:
% opt['config'])
elif interactive and ui.output.isatty():
logo = Path(src.BASEDIR + "data/logo.ascii").read()
cmdrun(iface, "clear")
cmdrun(iface, "lrun clear")
print(logo + '\n\n')
print(colorize("%Bold", "# Stealth post-exploitation framework\n"))
print(colorize("%DimWhite", rand_message()))
Expand Down
17 changes: 0 additions & 17 deletions src/ui/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,23 +392,6 @@ def do_exploit(self, argv):

return tunnel.open() # it raises exception if fails

##################
# COMMAND: clear #
@staticmethod
# pylint: disable=unused-argument
def do_clear(argv):
"""Clear the terminal screen
SYNOPSIS:
clear
DESCRIPTION:
Clear the terminal screen. This command
is interesting for visibility purposes only.
"""
if ui.output.isatty():
os.system('clear')

#################
# COMMAND: rtfm #
@staticmethod
Expand Down

0 comments on commit 25a913e

Please sign in to comment.