Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # aramosf<@>gmail.com http://www.securitybydefault.com
- # Mon Dec 8 19:10:57 CET 2008
- html=`curl -L -s $1`
- d=`echo $1 | sed -e 's/.*d=\(.*\)/\1/g'`
- megavar=`echo "$html" | grep megavar |sed -e 's/.*value="\(.*\)".*/\1/'`
- imagecode=`echo "$html" | grep imagecode |sed -e 's/.*value="\(.*\)".*/\1/'`
- captcha=`echo "$html" | grep capgen | sed -e 's/.*php?\(.*\)".*/\1/'`
- file=`echo /tmp/$RANDOM.gif`
- letra1=`echo /tmp/$RANDOM.gif`;
- letra2=`echo /tmp/$RANDOM.gif`;
- letra3=`echo /tmp/$RANDOM.gif`;
- curl -s http://www.megaupload.com/capgen.php?$captcha -o $file
- convert -fill "#000000" -opaque "#786464" -fill "#ffffff" -fuzz 45% -opaque "#dc6464" $file $letra3
- convert -fill "#000000" -opaque "#aa6464" -fill "#ffffff" -fuzz 45% -opaque "#aa6464" $file $letra2
- convert -fill "#000000" -opaque "#dc6464" -fill "#ffffff" -fuzz 45% -opaque "#dc6464" $file $letra1
- imagestring=`gocr -C "A-Z" -i $letra3``gocr -C "A-Z" -i $letra2``gocr -C "A-Z" -i $letra1`
- rm -f $file $letra1 $letra2 $letra3
- html=`curl -e "$1" -L -s -d "megavar=$megavar&imagecode=$imagecode&d=$d&imagestring=$imagestring" http://www.megaupload.com/`
- abs=`echo "$html"|grep Math.abs|sed -e 's/.*Math.abs(-\(.*\))).*/\1/'`
- absn=$(printf \\$(printf '%03o' $abs))
- stxt=`echo "$html"|grep sqrt|sed -e "s/var . = '\(.*\)'.*/\1/"`
- sqrt1=`echo "$html"|grep sqrt|sed -e "s/.*sqrt(\(.*\))).*/\1/"`
- sqrt2=`echo -e "sqrt($sqrt1)\nquit\n" | bc -q -i`
- sqrtn=$(printf \\$(printf '%03o' $sqrt2))
- string="${stxt}${sqrtn}${absn}"
- urld=`echo "$html" | grep megaupload.com/files/ | sed -e 's|.*<a href="\(.*\)" onclick.*|\1|'`
- urldl=`echo $urld | sed -e "s/'.*'/$string/g"`
- filename=`echo $urldl|sed -e "s|.*/\(.*\)|\1|"`
- echo Descargando: $filename
- echo Espera de 45 segundos
- sleep 46
- curl "$urldl" -o "$filename"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement