Files
metasploit-gs/external/installer-win32/scripts/userfriendly.sh
T
HD Moore 5507d686da Remove rm of old touched file
git-svn-id: file:///home/svn/framework3/trunk@7480 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-12 07:15:13 +00:00

28 lines
568 B
Bash

#!/bin/bash
#
# Reset file permissions to allow other users
#
umask 022
chmod 755 /bin/bash 2>/dev/null
if [ $? -ne "0" ]; then
echo "[*] This application *MUST* be launched as an administrator the first time"
echo "[*] Press enter to exit"
read BOOM
exit 1
fi
chmod 755 -R /bin /*.bat /lib /usr /var /dev /etc /sbin /msf3 2>/dev/null
if [ $? -ne "0" ]; then
echo "[*] This application *MUST* be launched as an administrator the first time"
echo "[*] Press enter to exit"
read BOOM
exit 1
fi
chmod 755 /home
chmod 1777 /tmp /var/tmp
touch /etc/_FRIENDLY_