当前位置:网站首页>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 .
边栏推荐
- 企业级SaaS CRM实现
- 攻防世界-Web进阶区-unserialize3
- 2837xd 代码生成——StateFlow(3)
- Who is better for Beijing software development? How to find someone to develop system software
- BugkuCTF-web21(详细解题思路及步骤)
- C语言之做木桶
- Navicat remote connection MySQL reports an error 1045 - access denied for user 'root' @ '222.173.220.236' (using password: yes)
- 2837xd 代碼生成——StateFlow(4)
- From concept to method, the statistical learning method -- Chapter 3, k-nearest neighbor method
- Long summary (code with comments) number structure (C language) -- Chapter 4, string (Part 1)
猜你喜欢

2837xd 代码生成——总结篇

YOLO物体识别,生成数据用到的工具

2837xd 代码生成——补充(2)

Enterprise level SaaS CRM implementation

MySQL事务

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

idea查看字节码配置

分享一篇博客(水一篇博客)

Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)

How to use PHP spoole to implement millisecond scheduled tasks
随机推荐
MySql报错:unblock with mysqladmin flush-hosts
Microservice practice | Eureka registration center and cluster construction
c语言编程题
Redis installation and deployment (windows/linux)
Demand delineation executive summary
记录下对游戏主机配置的个人理解与心得
Read Day5 30 minutes before going to bed every day_ All key values in the map, how to obtain all value values
Knife4j 2.X版本文件上传无选择文件控件问题解决
每天睡前30分钟阅读Day6_Day6_Date_Calendar_LocalDate_TimeStamp_LocalTime
2837xd 代码生成——StateFlow(3)
C语言之二进制与十进制
告别996,IDEA中必装插件有哪些?
Web security and defense
Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
Typeerror: X () got multiple values for argument 'y‘
Tools used for Yolo object recognition and data generation
Supplier selection and prequalification of Oracle project management system
2837xd Code Generation - stateflow (4)
互联网API接口幂等设计