0

This question already has an answer here:

I am currently preparing for a pentesting project. My question is: Is there a way to log all interactions within a terminal in a file (e.g. for later examination). This is not about the typical redirection with > or >> or tee command.

I want for example log into a mysql shell from a bash terminal and record every input and output during the interaction into a file. Opening this file at the end of the process should show me every step within the bash shell, every inserted command in the mysql shell and every printed output of bash and mysql.

Any idea how this could be done?

marked as duplicate by muru command-line Feb 5 '18 at 8:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

If your workstation runs Linux and you are using gnome-terminal or its brethren,

man script

If your terminal is PuTTY, then use the built-in logging functionality.

Cut and paste have always worked for me in similar situations, followed by judicious editing before showing the transcript.

  • Exactly what I needed. Thx – chris.heise Nov 13 '16 at 16:56
0

GNU Xnee

is exactly what you need. it can record movement, keystrokes, mouse cursor movement , anything.

Not the answer you're looking for? Browse other questions tagged or ask your own question.