shell bypass 403

GrazzMean Shell

: /usr/local/ei/ [ drwxr-xr-x ]
Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.149.214.156
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : magento2.php
<?php
$cwd = getcwd();

$file = 'app/etc/di.xml';
if (!($content = file_get_contents($file)))
	return false;

$content = str_replace('MaterializationStrategy\Symlink', 'MaterializationStrategy\Copy', $content);
file_put_contents($file, $content);

exit(0);
$res = `find pub/static -type l`;
$arr = explode("\n", $res);

foreach ($arr as $file) {
	if (!$file) continue;
	if (!($link = readlink($file)))
		continue;
	$link = preg_replace("|^$cwd|", '.', $link);

	$slashes = substr_count($file, '/');

	$link = str_repeat('../', $slashes) . $link;

	unlink($file);
	symlink($link, $file);
}
© 2025 GrazzMean