HEX
Server: Apache/2.4.65 (Debian)
System: Linux srv39710 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.4.11
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: /var/www/www-root/data/www/sunmoon.click/tds/files/lib/captcha/captcha.php
<?php
define("INDEX", "yes");
require_once '../../../config.php';
$letters = 'ABCDEFGKIJKLMNOPQRSTUVWXYZ';
$caplen = 6;
$width = 120; $height = 40;
$font = realpath('comic.ttf');
$fontsize = 16;
header('Content-type: image/png');
$im = imagecreatetruecolor($width, $height);
imagesavealpha($im, true);
$bg = imagecolorallocatealpha($im, 0, 0, 0, 127);
imagefill($im, 0, 0, $bg);
putenv('GDFONTPATH=' . realpath('.'));
$captcha = '';
for($i = 0; $i < $caplen; $i++){
	$captcha .= $letters[rand(0, strlen($letters)-1)];
    $x = ($width - 20) / $caplen * $i + 10;
	$x = round($x);
    $x = rand($x, $x+4);
    $y = $height - (($height - $fontsize) / 2);
	$y = round($y);
    $curcolor = imagecolorallocate($im, rand(0, 100), rand(0, 100), rand(0, 100));
    $angle = rand(-25, 25);
    imagettftext($im, $fontsize, $angle, $x, $y, $curcolor, $font, $captcha[$i]);
}
session_start();
$_SESSION['code'] = $captcha;
imagepng($im);
imagedestroy($im);
?>