⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
prestool
/
View File Name :
setindexreference.php
<?php if(!@include 'approve.php') die( "approve.php was not found!"); if(!isset($_GET["alpha"]) || ($_GET["alpha"] != "Gamma")) die("Nothing to do"); $fp = fopen("indexreference.php", "w"); if(!$fp) die("Error opening file"); fwrite($fp, "<?php "); $tmp = '$indexlist = array( '; $first = 1; $prefixlen = strlen(_DB_PREFIX_); $res = dbquery("SHOW TABLES"); while($row = mysqli_fetch_row($res)) { if(substr($row[0],0,$prefixlen) != _DB_PREFIX_) continue; $tablename = substr($row[0],$prefixlen); $ifirst = 1; if($first) $first=0; else $tmp .= ","; $tmp .= '"'.$tablename.'" => array('; $ires = dbquery("SHOW INDEXES FROM ".$row["0"]); $tabkeys = array(); while($irow = mysqli_fetch_assoc($ires)) { if(!isset($tabkeys[$irow["Key_name"]])) $tabkeys[$irow["Key_name"]] = array(); $tabkeys[$irow["Key_name"]][] = $irow["Column_name"]; } foreach($tabkeys AS $tabkey => $tabfields) { if($ifirst) $ifirst=0; else $tmp .= ","; $tmp .= '"'.$tabkey.'" => array('; $ffirst = 1; foreach($tabfields AS $tabfield) { if($ffirst) $ffirst=0; else $tmp .= ","; $tmp .= '"'.$tabfield.'"'; } $tmp .= ")"; } $tmp .= ") "; } $tmp .= ");"; fwrite($fp, $tmp); fclose($fp);