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.
Pystinger is a Python-based tool that enables SOCKS4 proxying and port mapping through webshells. It…
Introduction When it comes to cybersecurity, speed and privacy are critical. Public vulnerability databases like…
Introduction When it comes to cybersecurity, speed and privacy are critical. Public vulnerability databases like…
If you are working with Linux or writing bash scripts, one of the most common…
What is a bash case statement? A bash case statement is a way to control…
Why Do We Check Files in Bash? When writing a Bash script, you often work…