ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • LOS skeleton
    WebHacking/Load Of Sql Injection 2018. 2. 13. 19:43
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <?php 
      include "./config.php"
      login_chk(); 
      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 = @mysql_fetch_array(mysql_query($query)); 
      if($result['id'== 'admin') solve("skeleton"); 
      highlight_file(__FILE__); 
    ?>
    cs


    주석을 이용하여서 and 1=0을 지울수있기때문에 평소에 하던방식으로 sql injection을 이용하여서 id를 admin으로 만들어줄수있다.

    'WebHacking > Load Of Sql Injection' 카테고리의 다른 글

    LOS darkknight  (0) 2018.02.15
    LOS golem  (0) 2018.02.13
    LOS vampire  (0) 2018.02.13
    LOS troll  (0) 2018.02.13
    LOS orge  (0) 2018.02.13
Designed by Tistory.