mam przykladowy kod captcha breakera
<?php //Set the header to say what sort of information we are giving the browser //Generate 2 random numbers for use in our encryption //Use these to get a random string of numbers and letters using MD5 //We then cut the 32 char MD5 down to an 8 char string, starting from a random point //MD5 the $hash_string variable again //Asign it to a session $_SESSION['captcha'] = $hash_md5; //Create an array of the images available to us as backgrounds //Choose the background image using the handy array_rand function //Now to start creating the all important image! //Set the background as our randomly selected image $img_handle = imagecreatefrompng($bgs[$background]); //Set our text colour to white $text_colour = imagecolorallocate($img_handle, 255, 255, 255); //Set the font size $font_size = 5; //Get the horizontal and vertical dimensions of the background image $img_w = $size_array[0]; $img_h = $size_array[1]; //Work out the horizontal position //Work out the vertical position //Put our text onto our image imagestring($img_handle, $font_size, $horiz, $vert, $hash_string, $text_colour); //Output the image imagepng($img_handle); //Destroy the image to free up resources imagedestroy($img_handle); ?>
ale nie wiem jak powinien on wygladac w calosci
pozdrawiam