Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Owner: User #524297
Engineering Log
Goal
My goal is to record all engineering solutions as I encounter them for future reference, and to provide them in a public venue with the hopes that they might help other members of the Division.
Linux
Bash
NORMAL=$(tput sgr0)
GREEN=$(tput setaf 2; tput bold)
YELLOW=$(tput setaf 3)
RED=$(tput setaf 1)
function red() { echo -e "$RED$*$NORMAL" }
function yellow() { echo -e "$YELLOW$*$NORMAL" }
function green() { echo -e "$GREEN$*$NORMAL" }
function debug() { ((DEBUG)) && echo "[*] $*"; }
URL=${URL:-http://somewhere.com:8080}
if [ ${#api_key} != 32 ]; then
echo "invalid api key length"
fi
Ubuntu
Package Repository available on DEVLAN: http://repo.devlan.net/ubuntu/
Udev
Reload udev rules without restarting udev
sudo udevadm control --reload-rules
Ruby on Rails
To precompile assets for faster initial loading: (encountered while setting up GitLab)
bundle exec rake assets:precompile RAILS_ENV=production