Skip to content

Instantly share code, notes, and snippets.

View alexbartsch's full-sized avatar

Alexander Bartsch alexbartsch

View GitHub Profile
@alexbartsch
alexbartsch / Patch Shellshock
Last active August 29, 2015 14:06
Patch 'shell shock'
sudo apt-get update && sudo apt-get install --only-upgrade bash
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
@alexbartsch
alexbartsch / Add-SSH-Key
Last active August 29, 2015 14:02
Add Public SSH Key to Remote Server in a Single Command
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'