当前位置:网站首页>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 .
边栏推荐
- Idempotent design of Internet API interface
- Chrome browser tag management plug-in – onetab
- Read Day5 30 minutes before going to bed every day_ All key values in the map, how to obtain all value values
- 图像识别-数据增广
- 大学生四六级作文模板(自创版,成功跨过六级)
- JDBC review
- cmake的命令-官方文档
- Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
- Probability is not yet. Look at statistical learning methods -- Chapter 4, naive Bayesian method
- hystrix 实现请求合并
猜你喜欢
Activity的创建和跳转
Machine learning practice: is Mermaid a love movie or an action movie? KNN announces the answer
2837xd 代码生成——补充(1)
How to use PHP spoole to implement millisecond scheduled tasks
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
Typora安装包分享
A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
Pool de connexion redis personnalisé
Redis installation and deployment (windows/linux)
Statistical learning methods - Chapter 5, decision tree model and learning (Part 1)
随机推荐
记录下对游戏主机配置的个人理解与心得
一次聊天勾起的回忆
Elastic Stack之Beats(Filebeat、Metricbeat)、Kibana、Logstash教程
Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
2837xd 代码生成——StateFlow(3)
Microservice practice | fuse hytrix initial experience
How to use PHP spoole to implement millisecond scheduled tasks
MySQL default transaction isolation level and row lock
上班第一天的报错(Nessus安装winpcap报错)
Read 30 minutes before going to bed every day_ day4_ Files
int与string、int与QString互转
Chrome视频下载插件–Video Downloader for Chrome
Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
Int to string, int to qstring
Chrome用户脚本管理器-Tampermonkey 油猴
MySQL multi column in operation
How to install PHP in CentOS
cmake的命令-官方文档
Activity的创建和跳转
图像识别-数据增广