mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-12-02 13:24:15 +01:00
Removed reference to remote_prefix and fixed escaping in prompt
This commit is contained in:
parent
be5f33e415
commit
599b4133b6
@ -114,9 +114,7 @@ class Victim:
|
|||||||
self.saved_term_state = None # util.enter_raw_mode()
|
self.saved_term_state = None # util.enter_raw_mode()
|
||||||
# util.restore_terminal(self.saved_term_state, new_line=False)
|
# util.restore_terminal(self.saved_term_state, new_line=False)
|
||||||
# Prompt
|
# Prompt
|
||||||
self.remote_prompt = (
|
self.remote_prompt = """$(command printf "\\033[01;31m(remote)\\033[0m \\033[01;33m$(whoami)@$(hostname)\\033[0m:\\033[1;36m$PWD\\033[0m$ ")"""
|
||||||
"""$(command printf "\033[01;31m(remote)\033[0m \033[01;33m$(whoami)@$(hostname)\033[0m:\033[1;36m$PWD\033[0m$ ")"""
|
|
||||||
)
|
|
||||||
# Aliases for equivalent commands
|
# Aliases for equivalent commands
|
||||||
self.binary_aliases = {
|
self.binary_aliases = {
|
||||||
"python": [
|
"python": [
|
||||||
@ -366,8 +364,7 @@ class Victim:
|
|||||||
|
|
||||||
progress.update(task_id, status="prompt")
|
progress.update(task_id, status="prompt")
|
||||||
|
|
||||||
|
self.run(f"export PS1='{self.remote_prompt}'")
|
||||||
self.run(f"export PS1='{self.remote_prefix} {self.remote_prompt}'")
|
|
||||||
|
|
||||||
# This should be valid in any POSIX compliant shell
|
# This should be valid in any POSIX compliant shell
|
||||||
progress.update(task_id, status="checking for pty")
|
progress.update(task_id, status="checking for pty")
|
||||||
|
Loading…
Reference in New Issue
Block a user