shell bypass 403

GrazzMean-Shell Shell

: /usr/local/lsws/admin/html.6.2.1/classes/ws/ [ drwxr-xr-x ]
Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.144.166.247
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : ConfValidation.php
<?php

class ConfValidation extends CValidation
{
	protected function validatePostTbl($tbl, &$d)
	{
		$isValid = parent::validatePostTbl($tbl, $d);
		
		if ($tbl->_id == 'VH_SECHL') {
			$res = $this->chkPostTbl_VH_SECHL($d);
			$this->setValid($isValid, $res);
		}
		return $isValid;
	}
	
	protected function chkPostTbl_VH_SECHL(&$d)
	{
		$isValid = 1;
		if ( $d['enableHotlinkCtrl']->GetVal() == '0' ) {
			if ( isset($d['suffixes']) && !$d['suffixes']->HasVal() ) {
				$d['suffixes']->SetErr(null);
			}
			if ( isset($d['allowDirectAccess']) && !$d['allowDirectAccess']->HasVal() ) {
				$d['allowDirectAccess']->SetErr(null);
			}
			if ( isset($d['onlySelf']) && !$d['onlySelf']->HasVal() ) {
				$d['onlySelf']->SetErr(null);
			}
			$isValid = 2;
		} else {
			if ( $d['onlySelf']->GetVal() == '0'
			&&  !$d['allowedHosts']->HasVal() ) {
				$d['allowedHosts']->SetErr('Must be specified if "Only Self Reference" is set to No');
				$isValid = -1;
			}
		}
		return $isValid;
	}

	
}
© 2025 GrazzMean-Shell