214, 3/11 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   ewqqw
   SQL injection ±âº»

http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_Web&no=236 [º¹»ç]


<!--Ignore this.-->
<html><body><form action='sqli_nth.php' method='get'><table><tr><td>id</td><td><input type='text' name='id'></td></tr><tr><td>pw</td><td><input type='text' name='pw'></td></tr><tr><td><input type='submit'></td></tr></table></form><hr></body></html>

<?php
  require 'config.php';//Ignore this.
  require 'flag.php';//Ignore this.

  $mysqli = mysqli_connect('localhost', 'newbiesqli2', 'newbiesqli_2', 'newbiesqli2') or die('Error : Please let dohyeokkim know this happening.');//Ignore this.

  $q = "select * from sqli2 where id='{$_GET[id]}' and pw='{$_GET[pw]}'";//query
    
  if(preg_match('/admin|x|b|conv|id|pw|\(/i', $_GET[id])) exit("No!");
  if(preg_match('/admin|x|b|conv|id|pw|\(/i', $_GET[pw])) exit("No!");

  echo $q;//This will show you query.
  echo '<hr>';

  $result = mysqli_fetch_array(mysqli_query($mysqli, $q));//Ignore this.

  //result
  if($result[id]){
    echo 'Succeed in login.<br>Hi! '.$result[id].'<br><br>';

    if($result[id] == 'admin')
      solve('sqli_nth');//Good!
  }
  else
    echo 'Failed to login.';

  echo '<hr>';

  highlight_file(__File__);//This will show you query.
?>

'or '1'='1 °°Àº °ÍµéÀº ¾ÈµÇ³×¿ä......

  Hit : 3190     Date : 2017/03/24 11:01



    
  SQL injection ±âº»     ewqqw
03/24 3189
173   ../ °æ·Î¿¡ ´ëÇÑ Áú¹®[1]     daydreamss
07/09 3202
172   À¥ ÇØÅ·À» ¹è¿ì°í½Í½À´Ï´Ù.     a12341z
04/05 3210
171   ¹®µæ ¶°¿À¸¥ Àǹ®Á¡ ÇϳªÀÔ´Ï´Ù!![1]     »ç¶û°ú·Î¸Á
12/07 3211
170   hackthissite.org ÀÇ basic 2¹ø¹®Á¦..[3]     $Zero
03/15 3224
169   À¥ÇØÅ·ÂÊÀ¸·Î ³ª°¡·Á´Â °íµùÀ©...[1]     lys105
01/28 3226
168   À¥ÇØÅ· ¹è¿ï·Á°í ÇÕ´Ï´Ù[2]     aktrg1234
11/09 3229
167   À¥ÇØÅ·À» °øºÎÇÏ°í ½ÍÀºµ¥¿ä ¹¹ºÎÅÍ °øºÎÇؾߵɱî¿ä??[2]     kkkod1150
01/27 3231
166   Å©·¡Å· ÇØÁֽǺР±¸ÇØ¿ä (ºÒ¹ýx) »ç·Êµå¸³´Ï´Ù.     mss0812
06/22 3238
165   À¥»çÀÌÆ® ÇØÅ·°ü·Ã ¹®Àǵ帳´Ï´Ù.[1]     chniow
02/27 3253
164   ½©·Î ÀÎÅÍ³Ý Á¢¼Ó     sean95
02/14 3260
163     Æķνº     zen0c1de
07/18 3275
162   À¥¿¡¼­ ¾²ÀÌ´Â ¾Ç¼º ½©Äڵ忡 ´ëÇØ..     likemuz2
04/08 3285
161   À¥ÇØÅ·¿¡´ëÇÏ¿©[1]     °¡¸é¼ÓÀǹ̼Ò
04/20 3297
160   °ú¿¬ ´ëÇü °Ë»ö»çÀÌÆ® ¹ö±×... ¾ÆÁ÷ °¡´ÉÇÒ±î¿ä...?[2]     magpass
10/08 3297
159   ÀÎDz ¹Ú½º ÀÓÀÇ º¯°æ ¹æ¹ý Áú¹®ÀÌ¿ä![4]     lmi
07/02 3305
158   À¥¼­¹ö ÇØÅ·¹× º¸¾È¿¡ °üÇÑ Áú¹®ÀÔ´Ï´Ù.[2]     laysiankim
07/15 3306
157   ftz level5 --> level6¿¡¼­¿ä[1]     31337ÇØÄ¿½º
08/10 3313
156   À¥½© º»ÁúÀûÀ¸·Î ¹æ¾îÇÒ¼ö ÀÖ´Â ¹æ¹ý?[1]     idbali
07/24 3318
155   eval¿¡ ´ëÇؼ­[3]     yeastblue
10/05 3325
[1][2] 3 [4][5][6][7][8][9][10]..[11]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org