Captcha 1&2 - CanYouHack.it

curl -u b:4 -c cookietxt.txt "http://canyouhack.it/Forum/index.php?action=login2"
curl -s -b ./cookietxt.txt "http://canyouhack.it/Content/Challenges/Captcha/Captcha1.php" > bzocr.png
tesseract ./bzocr.png ./bzocr.txt
cat ./bzocr.txt.txt | tr -d '\n' > bzocr2.txt
pippo=`cat ./bzocr2.txt`
curl -s -b ./cookietxt.txt "http://canyouhack.it/Content/Challenges/Captcha/Captcha1.php?text=$pippo" > result.png


curl -s -b ./cookietxt.txt http://canyouhack.it/Content/Challenges/Captcha/Captcha2.php > bzocr3.png 
convert -auto-orient ./bzocr3.png ./bzocr3r.png
tesseract -psm 8 ./bzocr3r.png ./bzocr3.txt
cat ./bzocr3.txt.txt | tr -d '\n' > bzocr4.txt
pippo=`cat ./bzocr4.txt`
curl -s -b ./cookietxt.txt "http://canyouhack.it/Content/Challenges/Captcha/Captcha2.php?text=$pippo" > result4.png
cp ./bzocr3r.png ~/Desktop
cp ./result4.png ~/Desktop

Categories: , , Share

Leave a Reply