register capatcha

06/12/2012 14:28 mamaorha#1
this is a start in php of how to find the lol register capatcha for easy registring (like i saw one of the proggrams here can do)

PHP Code:
<?php 
    $imagedata 
"http://signup.leagueoflegends.com/en/signup/captcha/";
    
$destfilename "capatcha.gif";

    
$img imagecreatefrompng($imagedata);

    
$imageWidth imagesx($img);
    
$imageHeight imagesy($img);

    for (
$i 0$i $imageWidth$i++) 
    {
        for (
$j 0$j $imageHeight$j++) 
        {
            
$rgb imagecolorat($img$i$j);
            
$r = ($rgb >> 16) & 0xFF;
            
$g = ($rgb >> 8) & 0xFF;
            
$b $rgb 0xFF;

            
$newColor ImageColorAllocate($img255255255);

            if(
$r == "128" && $g == "128" && $b == "255")
                
ImageSetPixel($img$i$j$newColor);
            
            else if(
$r == "227" && $g == "218" && $b == "237")
                
ImageSetPixel($img$i$j$newColor);

            else if(
$r == "128" && $g == "191" && $b == "255")
                
ImageSetPixel($img$i$j$newColor);
        }
    }

    
header('Content-Type: image/png');

    
imagegif($img$destfilename);

    
imagepng($img);
    
imagedestroy($img);
?>
i dont have much time to mess with it so i hope one of u can use it...

(it removed the background-the net-and the random thingy on the letters)

only thing left is to straight the words and compare em

example
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]