-
LOS skeletonWebHacking/Load Of Sql Injection 2018. 2. 13. 19:431234567891011<?phpinclude "./config.php";login_chk();dbconnect();if(preg_match('/prob|_|\.|\(\)/i', $_GET[pw])) exit("No Hack ~_~");$query = "select id from prob_skeleton where id='guest' and pw='{$_GET[pw]}' and 1=0";echo "<hr>query : <strong>{$query}</strong><hr><br>";$result = @mysql_fetch_array(mysql_query($query));if($result['id'] == 'admin') solve("skeleton");highlight_file(__FILE__);?>
cs 주석을 이용하여서 and 1=0을 지울수있기때문에 평소에 하던방식으로 sql injection을 이용하여서 id를 admin으로 만들어줄수있다.
'WebHacking > Load Of Sql Injection' 카테고리의 다른 글
LOS darkknight (0) 2018.02.15 LOS golem (0) 2018.02.13 LOS vampire (0) 2018.02.13 LOS troll (0) 2018.02.13 LOS orge (0) 2018.02.13