当前位置:网站首页>Bugkuctf-web21 (detailed problem solving ideas and steps)
Bugkuctf-web21 (detailed problem solving ideas and steps)
2022-07-02 09:40:00 【hangshao0.0】
Catalog
Examine the subject
The title has no information , Just encourage you not to give up ,never give up.

F12 pick up information
No additional information , Refreshed a few times , There is nothing new .

Burp suite Grab the bag

There's a hint 1p.html , So the GET The parameter is changed to 1p.html , Get a bunch of JS Code


decode
therefore , Online decoding

There are still comments after decoding , Try to use base64 decode

After decoding , Found new information , There are some functions and judgment statements , There are also many percent signs

It can be seen that , It also needs to be URL decode



analysis PHP Code
obtain PHP The code is as follows , There are always some functions that you don't understand , Just check it directly
";if(!$_GET['id']) { header('Location: hello.php?id=1'); exit(); } $id=$_GET['id']; $a=$_GET['a']; $b=$_GET['b']; if(stripos($a,'.')) { echo 'no no no no no no no'; return ; } $data = @file_get_contents($a,'r'); if($data=="bugku is a nice plateform!" and $id==0 and strlen($b)>5 and eregi("111".substr($b,0,1),"1114") and substr($b,0,1)!=4) { $flag = "flag{
***********}" } else { print "never never never give up !!!";
}
?>

structure payload
Parameter is : /hello.php?id=0e&a=php://input&b=.123542
Variable a, Upload files
Variable b, The initial letter is a dot , It's not equal to 4,”111“ Splice with a point , It can be done with ”1114“ Regular matching


I didn't intend to write , Later, I felt that this problem was still very good , So I wrote , If it helps , Welcome to like comment collection .
边栏推荐
- 道阻且长,行则将至
- What is the function of laravel facade
- zk配置中心---Config Toolkit配置与使用
- Vs+qt set application icon
- 三相逆变器离网控制——PR控制
- Mysql 多列IN操作
- Knife4j 2.X版本文件上传无选择文件控件问题解决
- Beats (filebeat, metricbeat), kibana, logstack tutorial of elastic stack
- Pool de connexion redis personnalisé
- Watermelon book -- Chapter 6 Support vector machine (SVM)
猜你喜欢

Navicat 远程连接Mysql报错1045 - Access denied for user ‘root‘@‘222.173.220.236‘ (using password: YES)

Hystrix implements request consolidation

每天睡觉前30分钟阅读_day4_Files

Chrome user script manager tempermonkey monkey

2837xd code generation - Summary

Read 30 minutes before going to bed every day_ day4_ Files

BugkuCTF-web21(详细解题思路及步骤)

Timed thread pool implements request merging

Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程

Tinyxml2 reading and modifying files
随机推荐
Navicat remote connection MySQL reports an error 1045 - access denied for user 'root' @ '222.173.220.236' (using password: yes)
VIM operation command Encyclopedia
What are the differences between TP5 and laravel
MySQL error: unblock with mysqladmin flush hosts
How to use pyqt5 to make a sensitive word detection tool
Operation and application of stack and queue
Thinkphp5 how to determine whether a table exists
MySQL multi column in operation
道阻且长,行则将至
C语言之二进制与十进制
分享一篇博客(水一篇博客)
Fragmenttabhost implements the interface of housing loan calculator
int与string、int与QString互转
逆变器simulink模型——处理器在环测试(PIL)
Typora安装包分享
图像识别-数据增广
并网逆变器PI控制(并网模式)
2837xd 代码生成——StateFlow(4)
Break the cocoon | one article explains what is the real cloud primordial
每天睡前30分钟阅读Day5_Map中全部Key值,全部Value值获取方式