Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /proc/self/root/usr/local/ei/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/local/ei/suitcrm.php
<?php
include('public/legacy/config.php');

$c = $sugar_config['dbconfig'];

$str = "DATABASE_URL=\"mysql://{$c['db_user_name']}:{$c['db_password']}@localhost/{$c['db_name']}\"\n";
$str .= "APP_SECRET=\"" . bin2hex(openssl_random_pseudo_bytes(12)) . "\"\n";
file_put_contents('.env.local', $str);

file_put_contents('index.php', "<?php header('location: public/'); ?>");

Hry