Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Your personal shell command keeper
Writwick Wraj loves using the command line.
Writwick googles "How to do X in terminal?" and multiple forums and blog posts finally provide him the magical command for the rescue. Problem Solved !
Fast forward couple weeks, Writwick has to do X in terminal, again. Wraj remembers solving this few weeks ago. Let him do a reverse-i-search with Ctrl+R. Nope, can't remember sh*t. Browser search history? 25 web pages found matching X. Argh!
Writwik finally finds the solution. From this time Writwik starts writing the commands somewhere online for the future.
Wait, why shouldn't he keep the command in his terminal itself if this is only place where he'll ever have use it?
keep push
and keep pull
to sync the commands between GitHub
gist and other computers.ProTip : Save the commands you usually forget in ssh sessions and sync it with your local machine.
$ pip3 install keep
Use Python 3.6 or later.
You can install pip3 using apt-get as sudo apt install python3-pip
.
Usage: keep [OPTIONS] COMMAND [ARGS]...
Keep and view shell commands in terminal only.
Read more at https://github.com/orkohunter/keep
Options:
-v, --verbose Enables verbose mode.
--help Show this message and exit.
Commands:
edit Edit a saved command.
github_token Register a GitHub Token to use GitHub Gists as a backup.
grep Searches for a saved command.
init Initializes the CLI.
list Shows the saved commands.
new Saves a new command.
pull Pull commands from saved GitHub gist.
push Push commands to a secret GitHub gist.
rm Deletes a saved command.
run Executes a saved command.
update Check for an update of Keep.
See the detailed usage and tutorial.
To enable command-line completion (TAB completion) follow these steps for the shell of your choice
Create a directory in your home directory called .bash
mkdir -p $HOME/.bash
Copy completion/keep.bash to $HOME/.bash/keep
curl -SLo "$HOME/.bash/keep" "https://raw.githubusercontent.com/OrkoHunter/keep/master/completions/keep.bash"
Add the following lines to $HOME/.bashrc
file
[ -f "$HOME/.bash/keep" ] && . "$HOME/.bash/keep"
Create a directory in your home called .zsh
mkdir -p $HOME/.zsh
Copy completion/keep.zsh to $HOME/.zsh/_keep
curl -SLo "$HOME/.zsh/_keep" "https://raw.githubusercontent.com/OrkoHunter/keep/master/completions/keep.zsh"
Add the following lines inside $HOME/.zshrc
file
fpath=($HOME/.zsh $fpath)
autoload -Uz compinit && compinit
This is a very young project. If you have got any suggestions for new features or improvements, please comment over here. Pull Requests are most welcome !
❤
Not a command line fanatic? Here are some resources for you :
FAQs
Personal shell command keeper
We found that keep demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.