#!/bin/bash echo "Script for educational purposes only. Only use on networks you are authorized to access." echo -e "Do you want to continue? (y/n)" read answer if [ $answer = "y" ]; then echo "Continuing." else exit 1 fi sudo find /var/cache/shill -name default.profile -exec cp {} /tmp/ \; sudo chmod 644 /tmp/shill.profile cat /tmp/shill.profile echo "Passwords found in shill profile: " if [ $DEBUG -eq 1 ]; then egrep 'Name=|=rot' "$PASSWD_FILE" | sed -r 's;.*rot47:([^ ]+).*;\1;' | grep -v 'rot47' fi DATA=$(egrep 'Name=|=rot' "$PASSWD_FILE" | sed -r 's;.*rot47:([^ ]+).*;\1;' | grep -v 'rot47' | sed 's; ;^;g') for item in $DATA do field=$(echo "$item" | grep 'Name=') if [ ! -z "$field" ]; then echo "$item" | tr '^' ' ' else # do rot47 conversion, and colorize echo "$item" | tr '!-~' 'P-~!-O' | grep --color '.*' fi done