- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.146.107.223
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/www/mesa/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/puertode/www/mesa//avatar.php
<?php
/*********************************************************************
    avatar.php

    Simple download utility for internally-generated avatars

    Peter Rotich <peter@osticket.com>
    Jared Hancock <jared@osticket.com>
    Copyright (c)  2006-2014 osTicket
    http://www.osticket.com

    Released under the GNU General Public License WITHOUT ANY WARRANTY.
    See LICENSE.TXT for details.

    vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require('client.inc.php');

if (!isset($_GET['uid']) || !isset($_GET['mode']))
    Http::response(400, '`uid` and `mode` parameters are required');

require_once INCLUDE_DIR . 'class.avatar.php';

try {
    $ra = new RandomAvatar($_GET['mode']);
    $avatar = $ra->makeAvatar($_GET['uid'], $_GET['size']);

    Http::response(200, false, 'image/png', false);
    Http::cacheable($_GET['uid'], false, 86400);
    imagepng($avatar, null, 1);
    imagedestroy($avatar);
    exit;
}
catch (InvalidArgumentException $ex) {
    Http::response(422, 'No such avatar image set');
}

Youez - 2016 - github.com/yon3zu
LinuXploit