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



    
34   À¥ÇØÅ· ¹è¿ï·Á°í ÇÕ´Ï´Ù[2]     aktrg1234
11/09 3180
33   ¸ÞÀÏ ÇØÅ·¿¡ ´ëÇؼ­ ¹®ÀÇ ÇÕ´Ï´Ù[5]     wqw3
12/16 5045
32   False Injection¿¡ °üÇÑ Áú¹®ÀÔ´Ï´Ù.[3]     dudtntdud
01/18 2620
31   [À¥Áú¹®] »çÀÌÆ® ¼Ò½º¸¦ Åë°·Î °®°í¿À´Â ÅøÀÌ ÀÖ³ª¿ä?[2]     helpwizet
03/08 5216
30   get method ¿¡ °üÇÑ Áú¹®[1]     ewqqw
03/13 2745
29   POST METHOD     ewqqw
03/13 2392
28   Post Method[2]     ewqqw
03/16 2527
27   cookie °ü·Ã[1]     ewqqw
03/23 2674
  SQL injection ±âº»     ewqqw
03/24 3139
25   ¹ö±× ¹Ù¿îƼ ±âÃÊ     wwwlk
06/27 2790
24   À¥ÇØÅ·ÇÏ°í½Í¾î¼­ ¹è¿ì°íÀִµ¥ htmlÇÏ°í css ű׳ª»ö»óµîµî..ÀÌ·±°Å±îÁö ¹è¿ïÇÊ¿ä°¡ÀÖ³ª¿ä?;;[8]     ykk98433
06/29 4037
23   APMSETUP7À» ¼³Ä¡ÇÏ·Á°íÇϴµ¥..     0429njy
07/22 2402
22   Webhacking.kr ¹®Á¦¸¦ Ç®´Ù°¡..     alstnsms67
08/02 2687
21   À¥ÇØÅ·¿¡ ÇÊ¿äÇÑ ¾ð¾î[3]     yunpung1234
08/17 3673
20   À¥ÇØÅ· Áú¹®[1]     ericseo16
10/14 2818
19   PHP¿¡¼­ À̸ÞÀÏ Àü¼ÛÇÒ¶§ °¡·Îç ¼ö ÀÖ³ª¿ä?[9]     drrobot333
11/16 2569
18   XSS <> ġȯ ¿ìȸ°¡ °¡´ÉÇÑ°¡¿ä?[2]     drrobot333
11/19 3595
17   À¥ ÇØÅ· Áú¹®ÀÔ´Ï´Ù.     dsgoidsog
11/26 2748
16   Ä®¸®¸®´ª½º dvwa ¼³Ä¡°úÁ¤Áß ¿À·ù[2]     wnsdud5534
01/23 3401
15   ¾ÆÆÄÄ¡ ¼³Á¤Áß ¿À·ù[2]     eunjong147
02/06 8378
[1][2][3][4][5][6][7][8][9] 10 ..[11]

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