SHARE
TWEET

aramosf

a guest Dec 8th, 2008 751 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # aramosf<@>gmail.com http://www.securitybydefault.com
  3. # Mon Dec  8 19:10:57 CET 2008
  4.  
  5. html=`curl -L -s $1`
  6. d=`echo $1 | sed -e 's/.*d=\(.*\)/\1/g'`
  7. megavar=`echo "$html" | grep megavar |sed -e 's/.*value="\(.*\)".*/\1/'`
  8. imagecode=`echo "$html" | grep imagecode |sed -e 's/.*value="\(.*\)".*/\1/'`
  9. captcha=`echo "$html" | grep capgen | sed -e 's/.*php?\(.*\)".*/\1/'`
  10.  
  11. file=`echo /tmp/$RANDOM.gif`
  12. letra1=`echo /tmp/$RANDOM.gif`;
  13. letra2=`echo /tmp/$RANDOM.gif`;
  14. letra3=`echo /tmp/$RANDOM.gif`;
  15. curl -s http://www.megaupload.com/capgen.php?$captcha -o $file
  16. convert -fill "#000000" -opaque "#786464" -fill "#ffffff" -fuzz 45% -opaque "#dc6464" $file $letra3
  17. convert -fill "#000000" -opaque "#aa6464" -fill "#ffffff" -fuzz 45% -opaque "#aa6464" $file $letra2
  18. convert -fill "#000000" -opaque "#dc6464" -fill "#ffffff" -fuzz 45% -opaque "#dc6464" $file $letra1
  19. imagestring=`gocr -C "A-Z" -i $letra3``gocr -C "A-Z" -i $letra2``gocr -C "A-Z" -i $letra1`
  20. rm -f $file $letra1 $letra2 $letra3
  21.  
  22. html=`curl -e "$1" -L -s -d "megavar=$megavar&imagecode=$imagecode&d=$d&imagestring=$imagestring" http://www.megaupload.com/`
  23.  
  24. abs=`echo "$html"|grep Math.abs|sed -e 's/.*Math.abs(-\(.*\))).*/\1/'`
  25. absn=$(printf \\$(printf '%03o' $abs))
  26. stxt=`echo "$html"|grep sqrt|sed -e "s/var . = '\(.*\)'.*/\1/"`
  27. sqrt1=`echo "$html"|grep sqrt|sed -e "s/.*sqrt(\(.*\))).*/\1/"`
  28. sqrt2=`echo -e "sqrt($sqrt1)\nquit\n" | bc -q -i`
  29. sqrtn=$(printf \\$(printf '%03o' $sqrt2))
  30. string="${stxt}${sqrtn}${absn}"
  31. urld=`echo "$html" | grep  megaupload.com/files/ | sed -e 's|.*<a href="\(.*\)" onclick.*|\1|'`
  32. urldl=`echo $urld | sed -e "s/'.*'/$string/g"`
  33. filename=`echo $urldl|sed -e "s|.*/\(.*\)|\1|"`
  34.  
  35. echo Descargando: $filename
  36. echo Espera de 45 segundos
  37. sleep 46
  38. curl "$urldl" -o "$filename"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top