Flash Cookies Raise Privacy Concerns - 09/21/10 09:31 PM
#!/bin/bash -u - # cfc ::: Clear Flash Cookies #(c)EF/-HI-2010.Sep.23 [rev:2010.Sep.25] IFS=$' \t\n' declare -x PATH=/bin:/usr/bin declare -i x=0 c=0 k=0 subf= args= list= PRG=`basename "$0"` DR1=~/Library/Preferences/Macromedia/Flash?Player DR2=~/Library/Caches/Adobe/Flash?Player trap tabs EXIT Help () { printf '\e[4mClear Flash Cookies\e[0m\nUsage:\n' printf '\t\e[1m%s\e[0m [\e[1m-?\e[0m]\n\n' $PRG printf 'Run with no args to list the cookies.\n' printf 'Any arg except -h clears the cookies.\n' exit 1 } [ $# -ne 0 ] && [[ $1 = *[Hh]* ]] && Help Tree () { # print a tree of the cwd: local dir= par= ind= fix= dir=`pwd -P`; par=`dirname "$dir"`; tabs -5; ind=$'\t' [[ $par = / ]] && fix=$ind find -x "$dir" -print0 |xargs -0 ls -1dfF |sed 's:'"$par"':'"$fix"':; s:/$: \\:;s:[^/]*/:'"$ind"':g;s: \\$:/:;s:'"$ind"':'"$fix"':; 1s:'"$fix"'::' |sed "s:[/*@=|%]$:`printf '\e[1m&\e[0m'`:" tabs } GoToFolder () { 2>/dev/null cd "$1" >&2 && return 0 || { printf 'cannot access folder: %s/\n\a' "$1" return 1 } } ScanFolder () { GoToFolder "$1" || return 1 c=`ls -p1 |grep -e '/$' |wc -l |sed 's:[^0-9]::g'` subf=`ls -p1 |grep -e '/$' |sed 's:/$::;s: :\?:g'` case $c in 0) printf 'no subfolders exist in: %s\n' "$1"; return 1;; 1) args=$subf;; *) args=-f\ $subf;; esac list=`find -x $args -not -type d` if [[ -n $list ]] then [ $k -eq 0 ] && printf '\n\e[7mFILES FOUND:\e[0m' printf '\n\e[1;4m%s\e[0;1m/\e[0m\n' "$1" echo "$list" |tr '\n' '\000' |xargs -0 ls -legthrob echo ((k+=1)) fi return 0 } for d in $DR1 $DR2; do ScanFolder "$d"; done [ $k -eq 0 ] && printf 'already cleared...\n' printf '\n\e[7mTREE LISTING:\e[0m\n' printf '\e[1;4mPREFS\e[0m\n' GoToFolder $DR1 && Tree printf '\n\e[1;4mCACHE\e[0m\n' GoToFolder $DR2 && Tree echo if [ $# -ne 0 ] && [ $k -ne 0 ] then # remove cookie & cache items, but leave "basic" directory trees intact: GoToFolder $DR1 && rm -fR {macromedia.com/support/flashplayer/sys,#SharedObjects/*}/* x=$? GoToFolder $DR2 && rm -fR AssetCache/*/* ((x+=$?)) [ $x -eq 0 ] && printf '\e[30;42m FLASH COOKIES CLEARED \e[0m\n' || printf '\e[37;41m %s: an error occurred \e[0m\n' $PRG fi exit $x
$ cfc -h Clear Flash Cookies Usage: cfc [-?] Run with no args to list the cookies. Any arg except -h clears the cookies.
0000000 0 \0 060 000 0000002
QTCSO settings gain echosuppression defaultmicrophone defaultcamera defaultklimit defaultalways windowlessDisable crossdomainAllow crossdomainAlways secureCrossDomainCacheSize allowThirdPartyLSOAccess trustedPaths safefullscreen disallowP2PUplink
#!/bin/bash - # cfc ::: Clear Flash Cookies #(c)EF/-HI-2010.Sep.23 [rev:2010.Sep.27] IFS=$' \t\n' declare -x PATH=/bin:/usr/bin declare -i x=0 c=0 k=0 subf= args= list= s=s PRG=`basename "$0"` DR1=~/Library/Preferences/Macromedia/Flash?Player DR2=~/Library/Caches/Adobe/Flash?Player PREF=macromedia.com/support/flashplayer/sys/settings.sol CASH=AssetCache/*/cacheSize.txt trap tabs EXIT Help () { printf '\e[4mClear Flash Cookies\e[0m\nUsage:\n' printf '\t\e[1m%s\e[0m [\e[1m-?\e[0m]\n\n' $PRG printf 'Run with no args to list the cookies.\n' printf 'Any arg except -h clears the cookies.\n' exit 1 } [ $# -ne 0 ] && [[ $1 = *[Hh]* ]] && Help >&2 Tree () { # print a tree of the cwd: local dir= par= ind= fix= dir=`pwd -P`; par=`dirname "$dir"`; tabs -5; ind=$'\t' [[ $par = / ]] && fix=$ind find -x "$dir" -print0 |xargs -0 ls -1dfF |sed 's:'"$par"':'"$fix"':; s:/$: \\:;s:[^/]*/:'"$ind"':g;s: \\$:/:;s:'"$ind"':'"$fix"':; 1s:'"$fix"'::' |sed "s:[/*@=|%]$:`printf '\e[1m&\e[0m'`:" tabs } GoToFolder () { 2>/dev/null cd "$1" >&2 && return 0 || printf '\ncannot access folder: %s/\n' "$1" >&2; return 1 } ScanFolder () { GoToFolder "$1" || return 1 c=`ls -p1 |grep -e '/$' |wc -l |sed 's:[^0-9]::g'` subf=`ls -p1 |grep -e '/$' |sed 's:/$::;s: :\?:g'` case $c in 0) printf '\nno subfolders exist in: %s\n' "$1" >&2; return 1;; 1) args=$subf;; *) args=-f\ $subf;; esac list=`find -x $args -not -type d` if [[ -n $list ]] then [ $k -eq 0 ] && printf '\n\e[7mFILES FOUND:\e[0m' printf '\n\e[1;4m%s\e[0;1m/\e[0m\n' "$1" echo "$list" |tr '\n' '\000' |xargs -0 ls -legthrob ((k+=1)) fi return 0 } for d in $DR1 $DR2; do ScanFolder "$d"; ((x+=$?)); done printf '\n\n\e[7mTREE LISTING:\e[0m\n' printf '\e[1;4mPREFS\e[0m\n' GoToFolder $DR1 && Tree || ((x+=1)) printf '\n\e[1;4mCACHE\e[0m\n' GoToFolder $DR2 && Tree || ((x+=1)) echo if [ $# -ne 0 ] && [ $k -ne 0 ] then # clear cookies & caches but preserve useful files and directory trees: GoToFolder $DR1 && ls -d1 {macromedia.com/support/flashplayer/sys,#SharedObjects/*}/* \ 2>/dev/null |grep -v $PREF |tr '\n' '\000' |xargs -0 rm -fR ((x+=$?)) GoToFolder $DR2 && ls -d1 AssetCache/*/* 2>/dev/null |grep -v $CASH | tr '\n' '\000' |xargs -0 rm -fR ((x+=$?)) [ $x -eq 0 ] && printf '\e[30;42m FLASH COOKIES CLEARED \e[0m\n' >&2 fi [ $x -eq 1 ] && s= [ $x -eq 0 ] || printf '\e[37;41m %d error%s occurred \e[0m\n\a' $x "$s" >&2 exit $x
## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost 127.0.0.1 doubleclick.net 127.0.0.1 ad.doubleclick.net 127.0.0.1 mediaplex.com 127.0.0.1 img.mediaplex.com 127.0.0.1 view.atdmt.com 127.0.0.1 mads.com.com 127.0.0.1 madstage.com.com 127.0.0.1 omnituretrack.local.com 127.0.0.1 analytic.spamfighter.com # [Omniture] 127.0.0.1 cdn11.sphere.com # [Omniture] 127.0.0.1 www.sphere.com # [Omniture] 127.0.0.1 omniture.secure.miisolutions.net 127.0.0.1 html.knbc.com # [Omniture] 127.0.0.1 html.nbc10.com # [Omniture] 127.0.0.1 html.wnbc.com # [Omniture] 127.0.0.1 omniture.112.2o7.net 127.0.0.1 omniturecom.112.2o7.net 127.0.0.1 omniturebanners.112.2o7.net 127.0.0.1 stats.esomniture.com 127.0.0.1 www.omniture.com 127.0.0.1 media.fastclick.net 127.0.0.1 cdn.fastclick.net ::1 localhost fe80::1%lo0 localhost
tell application "Terminal" activate do script "ls -R ~/Library/Preferences/Macromedia/Flash*Player | grep -v settings | grep -v preferences | grep .sol | cat -n" display dialog "Welcome to Flush 3.1. Do you want to flush these flash cookies into your Trash now?" buttons {"Not Now", "Flush Away!"} default button 2 if button returned of result = "Flush Away!" then set fileToDelete to (((path to preferences folder) as text) & "Macromedia:Flash Player") as alias tell application "Finder" delete fileToDelete end tell end if quit end tell
0000000: 00bf 0000 0051 5443 534f 0004 0000 0000 .....QTCSO...... 0000010: 001a 7777 772e 6d70 3372 6f63 6b65 742e ..www.mp3rocket. 0000020: 636f 6d2f 7365 7474 696e 6773 0000 0000 com/settings.... 0000030: 0005 616c 6c6f 7701 0000 0006 616c 7761 ..allow.....alwa 0000040: 7973 0100 0000 066b 6c69 6d69 7400 4059 ys.....klimit.@Y 0000050: 0000 0000 0000 00