Skip to content

Instantly share code, notes, and snippets.

@calib0rx
calib0rx / windingo_ioc_qc.sh
Created March 19, 2014 19:14
Windingo IOC Quick check Script
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "Must be run as root"
exit 255
fi
echo "====================================================="
echo "========= Windingo IOC Quick Check Utility ========="
echo "========= Author: Mike Lockhart ========="
@calib0rx
calib0rx / gist:5816603
Created June 19, 2013 18:22
Protect your command line passwords
function pwcmd () {
echo -ne "\nEnter the password for the command\n>> ";
stty -echo;
read PASS;
stty echo;
echo -ne "\nEnter command with $PASS where you would type the password\n>> ";
read USRCMD;
eval $USRCMD;
}