403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/classes/general/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/classes/general/asn.php
<?
class CASNReader
{
	protected $value;

	public function __construct($value='')
	{
		$this->value = $value;
	}

	public function Read(&$buf)
	{
		self::ReadByte($buf);
		$size = self::ReadByte($buf);
	
		if($size > 127) 
		{
			$sizeLen = $size - 0x80;
			$size = self::ToInt(self::ReadBytes($buf, $sizeLen));
		}
	
		$this->value = self::ReadBytes($buf, $size);
	}

	protected static function ReadBytes(&$buf, $len)
	{
		$res = substr($buf, 0, $len);
		$buf = substr($buf, $len);
		
		return $res;
	}
    
    protected static function ReadByte(&$buf)
	{
		return ord(self::ReadBytes($buf, 1));
	}

	protected static function ToInt($bin)
	{
		$result = 0;
		$len = strlen($bin);
		for($i=0; $i<$len; $i++) 
		{
			$byte = self::ReadByte($bin);
			$result += $byte << (($len-$i-1)*8);
		}
		return $result;
	}

	public function GetValue()    
	{
		$result = $this->value;
		if(ord($result[0]) == 0x00)
			$result = substr($result, 1);
		return $result;
	}

	public function GetSequence()
	{
		$arResult = array();
		$val = $this->value;
		while($val <> '')
		{
			$sequence = new CASNReader();
			$sequence->Read($val);
			$arResult[] = $sequence;
		}  
		return $arResult;
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit