Skip to content

Instantly share code, notes, and snippets.

@Klepvink
Created February 14, 2025 13:45
Show Gist options
  • Select an option

  • Save Klepvink/85b8e8b83b0c6713f1de653b6a994508 to your computer and use it in GitHub Desktop.

Select an option

Save Klepvink/85b8e8b83b0c6713f1de653b6a994508 to your computer and use it in GitHub Desktop.
Shaha - Interactive shell with output automatically piped to Aha (https://github.com/theZiz/aha). This script is by no means meant to be used in a production environment, and was simply written to help create professional reports during assignments and exams.
#!/bin/bash
# Print banner
echo ""
echo "[!] You are now in shaha, a shell which helps with keeping track of used commands using aha."
echo "[!] Klepvink, 2025"
echo ""
# Spawn interactive shell, pipes all output to aha
python3 -c 'import pty; pty.spawn("/bin/bash")' | tee >(aha > $(date +%F_%H-%M-%S).html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment