:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/public_html/**
:: Editing File: captcha.php
<?php session_start(); // Generate random 5-letter string $captcha_text = substr(str_shuffle("ABCDEFGHJKLMNPQRSTUVWXYZ23456789"), 0, 5); $_SESSION["captcha"] = $captcha_text; // Create image $width = 120; $height = 40; $image = imagecreate($width, $height); $bg = imagecolorallocate($image, 255, 255, 255); // white background $text_color = imagecolorallocate($image, 0, 0, 0); // black text // Add noise for ($i = 0; $i < 50; $i++) { imagesetpixel($image, rand() % $width, rand() % $height, $text_color); } // Add text imagestring($image, 5, 25, 10, $captcha_text, $text_color); // Output image header("Content-type: image/png"); imagepng($image); imagedestroy($image); ?>