214, 9/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 : 3148     Date : 2017/03/24 11:01



    
54   °ú¿¬ ´ëÇü °Ë»ö»çÀÌÆ® ¹ö±×... ¾ÆÁ÷ °¡´ÉÇÒ±î¿ä...?[2]     magpass
10/08 3264
53   À¥¿¡¼­ ¾²ÀÌ´Â ¾Ç¼º ½©Äڵ忡 ´ëÇØ..     likemuz2
04/08 3251
52     Æķνº     zen0c1de
07/18 3236
51   ½©·Î ÀÎÅÍ³Ý Á¢¼Ó     sean95
02/14 3229
50   À¥»çÀÌÆ® ÇØÅ·°ü·Ã ¹®Àǵ帳´Ï´Ù.[1]     chniow
02/27 3224
49   Å©·¡Å· ÇØÁֽǺР±¸ÇØ¿ä (ºÒ¹ýx) »ç·Êµå¸³´Ï´Ù.     mss0812
06/22 3202
48   À¥ÇØÅ·À» °øºÎÇÏ°í ½ÍÀºµ¥¿ä ¹¹ºÎÅÍ °øºÎÇؾߵɱî¿ä??[2]     kkkod1150
01/27 3197
47   hackthissite.org ÀÇ basic 2¹ø¹®Á¦..[3]     $Zero
03/15 3191
46   À¥ÇØÅ·ÂÊÀ¸·Î ³ª°¡·Á´Â °íµùÀ©...[1]     lys105
01/28 3189
45   À¥ÇØÅ· ¹è¿ï·Á°í ÇÕ´Ï´Ù[2]     aktrg1234
11/09 3186
44   À¥ ÇØÅ·À» ¹è¿ì°í½Í½À´Ï´Ù.     a12341z
04/05 3182
43   ¹®µæ ¶°¿À¸¥ Àǹ®Á¡ ÇϳªÀÔ´Ï´Ù!![1]     »ç¶û°ú·Î¸Á
12/07 3174
42   ../ °æ·Î¿¡ ´ëÇÑ Áú¹®[1]     daydreamss
07/09 3166
41   ´ëÇб³ÀÇ À¥ÇØÅ·°ü·ÃÇÏ¿© Á¤º¸¸¦ ¾ò°íÀÚ Çϴµ¥[2]     han0205
11/05 3147
  SQL injection ±âº»     ewqqw
03/24 3147
39   À¥ ¾ð¾î Áú¹® µå¸³´Ï´Ù.[5]     pk920207
05/31 3116
38   xss Áú¹®ÀÔ´Ï´Ù[1]     usj1004s
12/06 3074
37   ¹ÙµÏÀÌ ¿Ãºä¾î Á¦ÀÛÀÚ ¸ð½Ê´Ï´Ù     killerkor
05/25 3063
36   ÀÇ·ÚÀÔ´Ï´Ù[4]     jjogun
01/30 3018
35   À¥ html¿¡ °üÇؼ­ Áú¹®ÀÌÀִµ¥¿ä[1]     yuhioh8
06/19 3007
[1][2][3][4][5][6][7][8] 9 [10]..[11]

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