SWF Potential Parameter Finder

function setup(){
	swfmill=$(which swfmill)
	if [[ "$?" != '0' ]]
	then 
		echo "Need install swfmill.. "
		if [[ $(uname -s) == "Darwin" ]]
		then
			echo "Installing swfmill.."
			brew install swfmill
		elif [[ $(uname -s) == "Linux" ]]
		then
			echo "Installing swfmill.."
			apt-get install swfmill
		else
			echo "System not supported!"
			exit 1
		fi
	fi
	echo "swfmill installed.. continue.."

}

function main(){
	rand_hex_string=$(openssl rand -hex 32)
	tmp_dir="/tmp"
	tmp_file_swf="$tmp_dir/$rand_hex_string.swf"
	tmp_file_xml="$tmp_dir/$rand_hex_string.xml"
	_tmp=$(wget "$1" -O $tmp_file_swf &>/dev/null)
	swfmill swf2xml $tmp_file_swf $tmp_file_xml
	cat $tmp_file_xml|grep -iEo '
Posting Komentar