HEX
Server: Apache
System: Linux hvh16.mirohost.net 6.14.0-29-generic #29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Aug 14 16:52:50 UTC 2 x86_64
User: likoholding (1037)
PHP: 7.3.33-25+0~20250707.133+debian12~1.gbp70fb14
Disabled: apache_child_terminate, dl, exec, imap_body, imap_createmailbox, imap_deletemailbox, imap_list, imap_open, imap_renamemailbox, inject_code, mb_send_mail, passthru, pcntl_alarm, pcntl_async_signals, pcntl_errno, pcntl_exec, pcntl_fork, pcntl_get_last_error, pcntl_getpriority, pcntl_setpriority, pcntl_signal, pcntl_signal_dispatch, pcntl_signal_get_handler, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifcontinued, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, set_time_limit, shell_exec, symlink, system
Upload Files
File: /var/www/likoholding/old.liko-holding.com.ua/modules/auth/antispamimg.php
<?
//$path = pathinfo(__FILE__);
//$pathtodir = $path['dirname'];

//echo $pathtodir;

$arr_letter=array('1','2','3','4','5','6','7','8','9','0');

$handle = opendir('modules/auth/tmp');
while (false !== ($file = readdir($handle)))
  {
    if ($file!='..' && $file!='.')
      unlink('modules/auth/tmp/'.$file);
  }
closedir($handle);
unset($_SESSION['aspam']);
for ($i_zn = 0; $i_zn < 5; $i_zn++)
  {
    $_SESSION['aspam']['leters'][] = $arr_letter[rand(0,count($arr_letter)-1)];
  }
$_SESSION['aspam']['code'] = implode("", $_SESSION['aspam']['leters']);


$im = imagecreate(90, 30);
$bg = imagecolorallocate($im, 0xAA,0xAA,0xAA);
$tc = imagecolorallocate($im, 0xFF,0xFF,0xAA);
$pixcolor = imagecolorallocate($im, 180,160,200);

$arr_x = array(3,19,35,51,68);

for($i = 1; $i < 150; $i++)
  imagesetpixel($im, Rand(1,90), Rand(1, 30), $tc);

for ($i_zn = 0; $i_zn < count($_SESSION['aspam']['leters']); $i_zn++)
  {
    $i_rands = $_SESSION['aspam']['leters'][$i_zn];
    imagettftext($im, 15, rand(-15,15), $arr_x[$i_zn], rand(15,25), $tc, $_SERVER['DOCUMENT_ROOT'].'/modules/auth/fonts/cambriab.ttf', $i_rands);
  }
imagejpeg($im, $_SERVER['DOCUMENT_ROOT'].'/modules/auth/tmp/'.md5($_SESSION['aspam']['code']));
imagedestroy($im);
print ("<img src='/modules/auth/tmp/".md5($_SESSION['aspam']['code'])."' width='90' height='30' style='position:relative; top:-5px;'>");
?>