Web/webhacking.kr

Webhacking.kr old-11

cloudnaaam 2025. 3. 19. 12:09

문제 페이지다.

이번 문제는 소스 코드를 주는구나

 

<?php
  include "../../config.php";
  if($_GET['view_source']) view_source();
?><html>
<head>
<title>Challenge 11</title>
<style type="text/css">
body { background:black; color:white; font-size:10pt; }
</style>
</head>
<body>
<center>
<br><br>
<?php
  $pat="/[1-3][a-f]{5}_.*$_SERVER[REMOTE_ADDR].*\tp\ta\ts\ts/";
  if(preg_match($pat,$_GET['val'])){
    solve(11);
  }
  else echo("<h2>Wrong</h2>");
  echo("<br><br>");
?>
<a href=./?view_source=1>view-source</a>
</center>
</body>
</html>

 

그냥 정규표현식만 읽을 줄 알면 된다.

 

1~3까지 숫자, a~f까지 알파벳 5글자, _ , 내 IP, pass사이에 탭 문자 넣기.

--> 2abced_IP%09p%09a%09s%09s

이렇게 val 파라미터에 넣으면 된다.

풀었다!

'Web > webhacking.kr' 카테고리의 다른 글

Webhacking.kr old-32  (0) 2025.03.20
Webhacking.kr old-58  (0) 2025.03.19
Webhacking.kr old-43  (0) 2025.03.19
Webhacking.kr old-10  (0) 2025.03.18
Webhacking.kr old-54  (0) 2025.03.18