ShellOpsLog is a versatile tool designed to capture and log all executed commands during various operations, such as red and purple team engagements.
It provides a lightweight solution for tracking command history without recording their output. The logged commands are saved in a CSV file, making it easy to analyze and include in client deliverables or internal reviews.
ShellOpsLog offers two primary implementations:
PROMPT_COMMAND
in Bash or preexec
in Zsh to log commands in Unix-based shells.source /path/to/ShellOpsLog.sh
to your shell startup file (e.g., ~/.bashrc
or ~/.zshrc
).start_operation_log ~/Projects/MyClient
.stop_operation_log
.New-Item -ItemType File -Path $PROFILE -Force
.Start-OperationLog "C:\Projects\MyClient"
.Stop-OperationLog
.While CMD support is available, it currently has limitations and is slated for updates in the future.
ShellOpsLog provides a simple yet effective way to track command history across different shell environments, making it a valuable tool for maintaining a clear record of activities during various operational engagements.
What Are Bash Comments? In Bash scripting, comments are notes in your code that the…
When you write a Bash script in Linux, you want it to run correctly every…
Introduction If you’re new to Bash scripting, one of the first skills you’ll need is…
What is Bash Scripting? Bash scripting allows you to save multiple Linux commands in a file and…
When it comes to automating tasks on Linux, Bash scripting is an essential skill for both beginners…
Learn how to create and use Bash functions with this complete tutorial. Includes syntax, arguments,…