⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.97
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
admin
/
Edit File: phpshell.php
<?php /** * PHP Shell. * * Copyright 1999-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL-2). If you * did not receive this file, see http://www.horde.org/licenses/lgpl. * * @author Chuck Hagenbuch <chuck@horde.org> * @category Horde * @license http://www.horde.org/licenses/lgpl LGPL-2 * @package Horde */ require_once __DIR__ . '/../lib/Application.php'; Horde_Registry::appInit('horde', array( 'permission' => array('horde:administration:phpshell') )); $vars = $injector->getInstance('Horde_Variables'); $apps_tmp = $registry->listApps(); $apps = array(); foreach ($apps_tmp as $app) { // Make sure the app is installed. if (!file_exists($registry->get('fileroot', $app))) { continue; } $apps[$app] = $registry->get('name', $app) . ' (' . $app . ')'; } asort($apps); $application = $vars->get('app', 'horde'); $command = trim($vars->php); $title = _("PHP Shell"); $view = new Horde_View(array( 'templatePath' => HORDE_TEMPLATES . '/admin' )); $view->addHelper('Horde_Core_View_Helper_Help'); $view->addHelper('Text'); $view->action = Horde::url('admin/phpshell.php'); $view->application = $application; $view->apps = $apps; $view->command = $command; $view->title = $title; $view->session = $session; if ($command) { $session->checkToken($vars->token); $pushed = $registry->pushApp($application); $part = new Horde_Mime_Part(); $part->setContents($command); $part->setType('application/x-httpd-phps'); $part->buildMimeIds(); $pretty = $injector->getInstance('Horde_Core_Factory_MimeViewer')->create($part)->render('inline'); $view->pretty = $pretty[1]['data']; Horde::startBuffer(); try { eval($command); } catch (Exception $e) { echo $e; } $view->command_exec = Horde::endBuffer(); if ($pushed) { $registry->popApp(); } } $page_output->addScriptFile('stripe.js', 'horde'); $page_output->header(array( 'title' => $title )); require HORDE_TEMPLATES . '/admin/menu.inc'; echo $view->render('phpshell'); $page_output->footer();
Simpan