Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 474 Bytes

challenge-8.md

File metadata and controls

16 lines (15 loc) · 474 Bytes

Challenge

<?php
require("config.php");
$table = $_GET['table']?$_GET['table']:"test";
$table = Filter($table);
mysqli_query($mysqli,"desc `secret_{$table}`") or Hacker();
$sql = "select 'flag{xxx}' from secret_{$table}";
$ret = sql_query($sql);
echo $ret[0];
?>

Refference