Hi all,
Today I stumbled over a tool called shellclear. It is featured on Shellclear - History automatisch auf sensible Inhalte untersuchen | ITrig
(in German though).
Here´s a rough translation of what it´s about:
The small tool shellclear automates checking the shell history for sensitive content such as passwords or access tokens.
Shells such as Bash, Zsh, PowerShell and Fish are supported. The tool uses a pattern file, which can be expanded as required.
When the shell is started, the contents of the history are automatically checked for passwords and tokens using this YAML pattern file.
If there is sensitive content, it will be listed and can be deleted.
Testing is currently done for AWS Access Keys, Github Tokens, Gitlab Tokens, Slack, Cloudflare, Twitter, Facebook and many more.
This is how it should be installed:
curl -sS https://raw.githubusercontent.com/rusty-ferris-club/shellclear/main/install/install.sh | bash
(BTW: shellclear can be found here: GitHub - rusty-ferris-club/shellclear at 13f7ccf5a102cd10f2e03f6fa1e898cc8782e7e8 )
However the installation procedure fails on in Debian vm :
curl -sS https://raw.githubusercontent.com/rusty-ferris-club/shellclear/main/install/install.sh | bash
[1/4] Get latest shellclear version
[2/4] Download https://github.com/rusty-ferris-club/shellclear/releases/download/v0.4.6/shellclear-v0.4.6-x86_64-linux.tar.xz to /home/rosika2/Downloads/shellclear
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 884k 100 884k 0 0 613k 0 0:00:01 0:00:01 --:--:-- 2261k
[3/4] Install shellclear to the /usr/local/bin
shellclear-v0.4.6-x86_64-linux/shellclear
mv: reguläre Datei '/usr/local/bin/shellclear' kann nicht angelegt werden: Keine Berechtigung
The last line is:
mv: reguläre Datei ‘/usr/local/bin/shellclear’ cannot be created, no rights
I get the same message when prepending the command with sudo
.
I´m a bit lost here and cannot find other suitable installation instructions on the github page. Or perhaps I´m too dumb to find them.
Does anybody know shellclear and if so, how did you get it installed
Thanks a lot for your help.
Many greetings
Rosika