WangYihang/Platypus

Logging Capability

felixguerrero12 opened this issue · 2 comments

Description

Adding logging capability to command sent, received, and both.

Reproduce

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

Expected behavior

Log commands and its output sent to the client for each specific session folder using hashes/codenames. Add "old_session_list" command to provide the possibility to view previous sessions. Use severity levels to manage your Golang logs volume by separating them into three categories - command sent, output received, and the combination of both.

Current behavior

No logging.

Screenshots/Terminal log

Environments

  • Standard

@felixguerrero12 Could you please to elaborate the the combination of both.

the data that hacker sent to the puppet will be rendered in one color, the reply of the puppet will be rendered in a different color.
I am confused about the the combination of both

Am I right...?

I was hoping for the possibility of adding three different logging capability:

  1. What commands was sent by the operator with a timestamp.
  2. The output of the command by the operator with a timestamp.
  3. The combination of both the STDIN and STDOUT.

in_ md5hash.log, out_ md5hash.log, combine_ md5hash.log