Skip to content

Commit

Permalink
Less weird solution to prompt command
Browse files Browse the repository at this point in the history
  • Loading branch information
cflems committed Dec 26, 2022
1 parent b6e7075 commit a262dd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkd_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ def screen_reader(screen):
cmdq_lock.release()
elif cmd == b'show-serverkey':
resp = showcrypto()
elif cmd == b'\xc0\xdeprompt':
pass
elif len(cmd) > 0:
shcmd = True
targets = []
Expand All @@ -357,9 +359,6 @@ def screen_reader(screen):
resp = '[pk] Can\'t target null command.'
blast_command(cmd, screen, targets=targets)
try:
if cmd == b'\xc0\xdeprompt':
screen.sendall(prompt_str())
continue
if len(resp) > 0:
screen.sendall(bytes('%s\n' % resp, 'utf-8'))
if len(tcp_clients) < 1:
Expand Down

0 comments on commit a262dd5

Please sign in to comment.