PHP code

<?php
include "sql_and_php_debug.php";
mysql_connect("localhost""level26""WcDpkjyY/UcHkYLpz0X/EA==");
mysql_select_db("level26");

?>
<h1>Browser detector</h1>
Try to dump the database through an SQL-injection in a header
<?php
$uag 
$_SERVER['HTTP_USER_AGENT'];
$res debug_mysql_query("SELECT * FROM agents WHERE uag LIKE '%$uag%' LIMIT 1");

if (
mysql_num_rows($res)) {
  
$row mysql_fetch_assoc($res);
  echo 
"<h2>Your browser is <b>$row[browser]</b></h2>";
} else {
  echo 
"<h2>We couldn't find your User-Agent in our db :(</h2>";
}
SQL debug

Browser detector

Try to dump the database through an SQL-injection in a header

We couldn't find your User-Agent in our db :(