1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help - Making Captcha txt bigger

Discussion in 'BlackHat Lounge' started by xplicit, Dec 4, 2008.

  1. xplicit

    xplicit BANNED BANNED

    Joined:
    Jul 21, 2008
    Messages:
    1,119
    Likes Received:
    1,053
    Hey All, If this is in the wrong section I apologize and please move.

    Ok, I am trying to set my captcha txt size, It is really small.

    I searched everywhere and have tried different things such as $size = rand(12, 14); and $charSize = 48; but neither of them worked.

    Here is the code I have

    Code:
    <?php
    
    require_once( '../inc/header.inc.php' );
    require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' );
    
    ob_start();
    $chars = array("a","b","c","d","e","f","h","i","k","m","n","o","r","s","t","u","v","w","x","z","2","3","4","5","6","7","8","9");
    /*
    $chars = array("a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J",
    			   "k","K","L","m","M","n","N","o","p","P","q","Q","r","R","s","S","t","T",
    			   "u","U","v","V","w","W","x","X","y","Y","z","Z","2","3","4","5","6","7","8","9");
    */
    
    $textstr = '';
    for ($i = 0, $length = 6; $i < $length; $i++)
       $textstr .= $chars[rand(0, count($chars) - 1)];
    
    $hashtext = md5($textstr);
    setcookie('strSec', $hashtext, 0, '/');
    
    if ( produceSecurityImage( $textstr, $hashtext ) != IMAGE_ERROR_SUCCESS )
    {
    	// output header
    	header( "Content-Type: image/gif" );
    	
        header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
        header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
        header( "Cache-Control: no-store, no-cache, must-revalidate" );
        header( "Cache-Control: post-check=0, pre-check=0", false );
        header( "Pragma: no-cache" );
    	
    	// output error image
    	@readfile( $dir['profileImage'] . 'simg_error.gif' );
    }
    
    ob_end_flush();
    ?>
    If anyone could help me on this I would be your best friend for life... Well maybe 5 minutes....lol

    Thanks in advance

    And NO there is no review copy so don't even ask you leechers.... HAHAHAHA... Ok that was wrong...
     
  2. fun4uoc

    fun4uoc Supreme Member

    Joined:
    Dec 25, 2007
    Messages:
    1,201
    Likes Received:
    1,042
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    I hear there are special sites and pills for just that problem.:D
     
  3. xplicit

    xplicit BANNED BANNED

    Joined:
    Jul 21, 2008
    Messages:
    1,119
    Likes Received:
    1,053
    Been there done that, Didint work, Actually went smaller when I stopped taken them.... Didnt read that on the side effects label
     
  4. fun4uoc

    fun4uoc Supreme Member

    Joined:
    Dec 25, 2007
    Messages:
    1,201
    Likes Received:
    1,042
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    Sorry I couldn't really help but I'm someone here will have an answer for you.
     
  5. xplicit

    xplicit BANNED BANNED

    Joined:
    Jul 21, 2008
    Messages:
    1,119
    Likes Received:
    1,053
    You big fat meanie...:p... That hurt my wittle feelings.

    I sure hope so, I have been trying everything I could find for the past 3 hrs and nothing has worked so far... I am lost