Created
February 14, 2025 13:45
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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