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



    
94   sql injection °ü·ÃÇؼ­ Áú¹®ÀÔ´Ï´Ù.[2]     cdpython
07/28 3497
93   sql injection °ø°Ý ¿À·ù¹ÝȯÁú¹®ÀÌ¿ä.[4]     yayaja11
03/21 2815
92   SQL Injection °ø°Ý±â¹ý Áú¹®µå¸³´Ï´Ù.[3]     kmc8724
07/03 4755
  SQL injection ±âº»     ewqqw
03/24 3174
90   sql injection ¹æ¾î ÄÚµå[2]     europa8340
10/04 2836
89   sql injection ½Ç½À ÇÏ·Á´Âµ¥¿ä ...¤Ð¤Ð[1]     wjscjfalsWkd1
06/20 4524
88   sql injectionÀä[3]     kangms0801
09/03 3770
87   sqlmap °ü·Ã¹× µ¥ÀÌÅͺ£À̽º °ü·Ã¿¡ Áú¹®ÇÕ´Ï´Ù[1]     r0ki
10/10 3400
86   sslstripÀ¸·Î Æ®À§ÅÍ ½º´ÏÇÎ Çغ»½ÅºÐ ÀÖ³ª¿ä?     Å×Ã÷
02/21 3383
85   teleport pro Áú¹®ÀÔ´Ï´Ù.[1]     mookung
09/19 7090
84   URLÀ» È°¿ëÇÑ Json ÆÄÀÏ APIºÐ¼®     huny606
12/24 2902
83   vbscript·Î Ŭ¶óÀ̾ðÆ® ½Å·ÚÇÒ ¼ö ÀÖ´Â »çÀÌÆ® µî·Ï ÇÏ´Â ¹æ¹ýÀÌ ±Ã±ÝÇÕ´Ï´Ù     lekel09
10/10 4777
82   webhacking.kr[1]     °¡¸é¼ÓÀǹ̼Ò
04/28 4956
81   webhacking.kr 30¹ø µµ¿òÁ» ÁֽǺÐ...[1]     kumi123
07/30 4552
80   webhacking.kr 33-4¹ø¹®Á¦ Áú¹®ÀÔ´Ï´Ù.[3]     hygasyde
03/26 4473
79   webhacking.kr °¡ÀÔ¹®Á¦ Áú¹®µå¸³´Ï´Ù[3]     kangms0801
03/29 5488
78   webhacking.kr °¡ÀÔ¹®Á¦ ¹Ù²¸¼­ Àß ¸ð¸£°Ú½À´Ï´Ù[1]     ¤»z¤Ól¤²q¤Çh¤§e¤Ñm
01/18 5856
77   Webhacking.kr ¹®Á¦¸¦ Ç®´Ù°¡..     alstnsms67
08/02 2714
76   WPA2/PSK °ü·Ã Áú¹®ÀÌ ÀÖ½À´Ï´Ù.     roccafort
04/30 2847
75   wpe°°Àº ÇÁ·Î±×·¥ÀÇ ¿ø¸®¸¦ ÀÌÇØÇÏ·Á¸é..[1]     attainer
11/01 4360
[1][2][3][4][5][6] 7 [8][9][10]..[11]

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