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



    
214   CloudFlare ¾²´Â »çÀÌÆ®´Â ÇØÅ·Çϱâ Èûµé±î¿ä?[3]     sogreat
03/21 226
213   À¥ÇØÅ· °ü·ÃÇÏ¿© Áú¹®µå¸³´Ï´Ù[5]     solo20
05/21 2359
212   À¥ÇØÅ· ÀÔ¹® Ã¥ÃßõÇØÁÖ¼¼¿ä     kjwp1
02/24 2507
211   À̹ÌÁö¾È¿¡ ¸®´ÙÀÌ·ºÆ® ¼Ò½º(¾Ç¿ë¸ñÀûX)[2]     tjdgus1515
12/06 4632
210   ¾ÆÆÄÄ¡ php mysql ¿¬µ¿°ü·Ã Áú¹®ÀÔ´Ï´Ù.[3]     Ä¿¼¼¾î
10/19 3596
209   sql injection ¹æ¾î ÄÚµå[2]     europa8340
10/04 2817
208   À¥ sqlmap Áß¿¡[1]     europa8340
07/26 2261
207   À¥ ÇØ Å· °¡´ÉÇÏ´Â[1]     custom890
12/31 2889
206   À¥ ÇØÅ· ÀÚ½ÅÀÖÀ¸½Å ºÐµé ²À ºÁÁÖ¼¼¿ä     bird999
12/05 2969
205   À¥ ÇØÅ· Çϴµ¥ À¥ °³¹ßµµ ÇÒ ÁÙ ¾Ë¾Æ¾ß Çϳª¿ä?[1]     unmask
10/25 2793
204   ÇØÅ·¸Àº¸±â(¼­Àû) ¾ÆÆÄÄ¡ÇÁ·Î±×·¥ Áú¹®ÀÔ´Ï´Ù[1]     Ä¿¼¼¾î
09/29 2656
203   À¥ÇØÅ· ÀÔ¹®ÇÒ·Á°íÇÕ´Ï´Ù. Á¶¾ð¹×°ú¿ÜÇØÁֽǽº½Â´Ô ±¸ÇÕ´Ï´õ[3]     edustars
09/26 2876
202   417 error     wiwiwi79
08/15 2522
201   ȨÆäÀÌÁö µðµµ½º ¿ø¸®?[1]     tbxmaos
02/12 2662
200   ¾ÆÆÄÄ¡ ¼³Á¤Áß ¿À·ù[2]     eunjong147
02/06 8398
199   Ä®¸®¸®´ª½º dvwa ¼³Ä¡°úÁ¤Áß ¿À·ù[2]     wnsdud5534
01/23 3417
198   À¥ ÇØÅ· Áú¹®ÀÔ´Ï´Ù.     dsgoidsog
11/26 2769
197   XSS <> ġȯ ¿ìȸ°¡ °¡´ÉÇÑ°¡¿ä?[2]     drrobot333
11/19 3617
196   PHP¿¡¼­ À̸ÞÀÏ Àü¼ÛÇÒ¶§ °¡·Îç ¼ö ÀÖ³ª¿ä?[9]     drrobot333
11/16 2581
195   À¥ÇØÅ· Áú¹®[1]     ericseo16
10/14 2830
1 [2][3][4][5][6][7][8][9][10]..[11]

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