aadhur/stash

GitHub: aadhur/stash

Stars: 0 | Forks: 0

# stash **Log terminal commands and their outputs into clean markdown writeups.** [![Go Version](https://img.shields.io/badge/go-1.26.3-00ADD8?style=flat-square&logo=go)](https://golang.org/) [![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE) [![Build](https://img.shields.io/badge/build-current-brightgreen?style=flat-square)]() ## Demo ![demo](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/ff33f96d8d040424.gif) ## Output format [View sample output](demo.md) ## Installation - Current git clone https://github.com/aadhur/stash cd stash go build -o stash mv stash /usr/local/bin/ ## Usage ### Start a session stash start Creates `filename.md` and begins the session. Only one session can be active at a time. # Resume a previously ended session stash start -r ### Log a command Runs the command, streams output live to your terminal, and records both into the `.md` file. stash log -- # With a command title stash log -c "Recon" -- nmap -sV 10.10.10.1 ### Add a comment stash comment # With a section divider and title stash comment -t "Initial Foothold" "Got shell via CVE-2024-XXXX" ### Other commands stash status # show active session stash end # close the session ## Reference | Command | Description | |---|---| | `start ` | Start a new session | | `log ` | Run and record a command | | `comment ` | Add a note | | `status` | Show active session | | `end` | End the session | | Flag | Command | Description | |---|---|---| | `-r` | `start` | Resume an existing `.md` file | | `-c` | `log` | Add a command title before the log | | `-t` | `comment` | Add a secondary title before the entry | ## Dependencies - [spf13/cobra](https://github.com/spf13/cobra) — CLI framework - [fatih/color](https://github.com/fatih/color) — terminal colors ## License MIT built by aadhur · made for the terminal
标签:EVTX分析