Exegol icon indicating copy to clipboard operation
Exegol copied to clipboard

[Feature] - Log session

Open jenaye opened this issue 1 year ago • 1 comments

The needs

I would like a log system that takes into account the entire exegol session

Description

Hello everyone,

thank you for your work, it's a pleasure to use it every day

however I have a request or perhaps a feature to create

The idea is as follows: during a pentest, more and more customers are asking us for time-stamped commands. Until now I've been using asciinema to record the content of my pentests, but I'm faced with several limitations.

I've also been able to test @claire-lex tool: https://github.com/claire-lex/mish which works very well on a work environment where the host contains all the tools but is less practical when working in a container

I'd like to know how you go about logging several shells or logging the contents of a screen/tmux that contains several subshells.

the most ideal solution would be to have something that takes effect for the entire container and which would be stored in the .exegol/workspace.

depending on the day I have 2 uses, either I create a shell via screen and I make a subshell by action led, or I do alt + enter then I write exegol start to open a 2nd shell exegol. I think that some people have their own habits, so we need to find the most transparent option for the user

Thank you for reading this and I look forward to reading your proposals.

Alternatives

No response

Additional context

No response

jenaye avatar Jun 21 '24 18:06 jenaye

Hello @jenaye

more and more customers are asking us for time-stamped commands

Since Exegol images 3.1.5 (and nightly) you can use the command history-dump to extract every commands run on your exegol container with the timestamp of execution of each command (it works with multipe subshell, tmux etc).

We also have a few ideas in our roadmap to improve the shell logging functionality, but we don't have enough time at the moment. We are open to any suggestion to improve this feature !

Dramelac avatar Oct 19 '24 14:10 Dramelac

Hey any news on this ? I realized that the -l option only works for the first shell and not the others ones ? Have any idea why ? :/ May be I can help with that

Dfte avatar Apr 16 '25 12:04 Dfte

Hey any news on this ? I realized that the -l option only works for the first shell and not the others ones ? Have any idea why ? :/ May be I can help with that

Currently, If you have created the container with -l, every shell of this container will be recorded. If not, if can record a specific ont-time shell with -l when starting a shell on an existing container.

Dramelac avatar Apr 16 '25 12:04 Dramelac

OK my bad it does work xD

Dfte avatar Apr 16 '25 13:04 Dfte