This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 =========" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |