当前位置:网站首页>[attack and defense world web] difficulty 1-star 3-point introductory questions: get, post, robots,, cookies, buttons, weak, PHP, web, serialize
[attack and defense world web] difficulty 1-star 3-point introductory questions: get, post, robots,, cookies, buttons, weak, PHP, web, serialize
2022-07-22 05:31:00 【Black zone (rise)】
Catalog
One 、view_source
How to solve the problem :
1、 Use developer tools to view the source code (F12、 Right click 、Ctrl+Shift+I、Ctrl+U)
2、 stay URL Head input view-source://
3、 take html The page is stored locally for viewing
4、 Use BurpSuite Grab the web page source code
5、 Close the browser js function
The process
Use developer tools to view the source code
view-source:http://61.147.171.105:65305/
html The page is stored locally for viewing
BurpSuite The agent grabs the package to obtain the web page source code
5、 Close the browser js function
You cannot right-click a blank page , May be js The front end of the control
Method 1 : have access to js Switch plug-in
Method 2 : Permanent ban js function
Enter... In the address bar of Firefox :about:config
spot “ Accept the risk and continue ” Button
Search for javascript.enabled, Then double click the column , Change the value to false You can shut down js
Two 、get_post
How to solve the problem :
1、 Using tools HackBar
2、 Use Robots agreement ( Can't view )
The process
Using tools HackBar
Use Robots agreement ( Can't view )
3、 ... and 、robots
How to solve the problem :
1、 see robots.txt file
Knowledge point :
The process
Add the /robots.txt
Check the access policy
visit /f1ag_1s_h3re.php page
Four 、backup
How to solve the problem :
1、 Backup file suffix .bak
The process
Most administrators will write the suffix of the backup file as .bak, therefore , Here we find .bak The file of
find index.php Backup files for , So let's start with url Enter... In the column index.php.bak
.bak Ahead of .php For coverage. ( And cannot be opened directly )
take .bak Get rid of it
5、 ... and 、cookie
How to solve the problem :
1、 Using tools HackBar
2、 Use bp Grab the bag
The process
Using tools cookie Editor
( Or use bp Grab the bag )
Get into cookie.php This page
See
See the http response
( Look at the return bag , Look directly inside the developer tool )
( Or use bp Grab the bag )
6、 ... and 、disabled_button
How to solve the problem :
1、 Delete special attributes
The process
Open the developer tool to view the page source code
Delete... In the button ‘disabled=" "’ attribute , The button can be used normally
Click on flag Button , appear flag
7、 ... and 、weak_auth
How to solve the problem :
1、 Use bp Blow up weak passwords
The process
Enter nothing , Click directly to log in
Tips admin( account number )
Account number input admin, Just type in the password
And then use bp Grab the bag , And explode the password ( Send to intruder)
Set the payload position , And configure the payload dictionary
Judge the result , If the length is obviously inconsistent, it may be the correct password
View the response , get flag
8、 ... and 、simple_php
How to solve the problem :
1、 Reading php Code
The process
a,b All for get The ginseng
flag1 and flag2 It's what we want
is_numeric() function : Detects whether a variable is a number or a numeric string , Yes, go back to TRUE, Otherwise return to FALSE
http://61.147.171.105:51599/index.php?a=a&b=1235b
Nine 、baby_web
How to solve the problem :
1、index.php It's usually php The initial page of
The process
The initial page described is that
php The initial page of is usually index.php
But they all jump to 1.php( There's redirection )
Try to get rid of 1.php The same is true for suffixes
Use bp Grab the packet and send it to repeater
Found in the returned package flag
Ten 、Training-WWW-Robots
How to solve the problem :
1、 see robots.txt file
Knowledge point :
The process
stay URL Followed by robots.txt
stay URL Followed by /fl0g.php
11、 ... and 、ics-06
How to solve the problem :
1、 Use bp Yes id Value for blasting
The process
You can click in this place
The title says there is only one , Use bp Grab the bag for blasting
Set the payload position
Set to number ( It turned out 300 It's not enough. ,3000)
Set thread (30 Too slow )
Found that the value is small , Enlarge again
The results of the analysis , There is a return packet size that is significantly different from others
Twelve 、PHP2
How to solve the problem :
1、 Reading php Code
The process
index.php The page has nothing
scan , I'm going to sweep 41w strip , Too slow , First throw a start picture
Finally scan to index.phps
stay URL Followed by index.phps
The key information $_GET[id] == "admin"
urldecode($_GET[id]) There will be a decoding
And the browser will also decode
So be right admin Conduct 2 Second code
( For the initials a The same goes for coding )
%2561dmin
urldecode(%2561)=%61
urldecode(%61)=a
13、 ... and 、unserialize3
How to solve the problem :
1、php serialize
Knowledge point :
The process
See __wakeup() I know it involves serialization 、 Deserialization
perform unserialize() When deserializing , I'll call __wakeup() function
Understand the meaning of serializing each character
You can look at this code and write the serialization result directly
?code=O:4:"xctf":1:{s:4:"flag";s:3:"111";}
__wakeup() Loophole : When serializing the object represented by the string , When the number of attributes in its serialized string is greater than the number of real attributes, it will skip __wakeup Implementation
Put the variable 1 Change it to 2 Or something larger than 1 The number of
?code=O:4:"xctf":2:{s:4:"flag";s:3:"111";}
边栏推荐
- 漏洞分析丨HEVD-0x6.UninitializedStackVariable[win7x86]
- Comment emqx 5.0 atteint 100 millions de connexions mqtt dans la nouvelle architecture mria + rlog
- 推荐系统论文汇总
- window 系统里 chrome 浏览器一些实用的调试技巧
- Using symbol, ES6 is a new method to obtain key value
- 【精选】表情包斗图小程序(可引流,开通流量主,权益外卖cps,带pc后台管理)
- 【微信小程序】WXSS和全局、页面配置入门砖
- 牛客刷题篇
- Web red alert, how to turn the audio stored locally into a playable state
- unity的静态设置以及烘培属性
猜你喜欢
How to clean the C disk
Leetcode-153- find the minimum value in the rotation sort array
ES6 from getting started to mastering 04: default values and remaining parameters of functions
多种方式Map集合遍历
FTP service and configuration
“全光”时代的宠儿——400G光模块
HTTP缓存策略,强缓存,协商缓存
Static setting and baking properties of unity
LeetCode·每日一题·814.二叉树剪枝·递归
NFS共享存储服务
随机推荐
Solution of access denied for user 'root' @ 'localhost' (using password: yes)
Mria + RLOG 新架构下的 EMQX 5.0 如何实现 1 亿 MQTT 连接
How to draw PCB outline machining drawing
What if MySQL deletion fails
Pl/sql exception
国产芯片价格超低在国产替代的同时大量出口,让美国芯片深感压力
ROS2学习笔记:Launch脚本
mysql数据类型
实习打怪之路:Promise简介原理和常见方法
ES6 从入门到精通 # 04:函数之默认值、剩余参数
Comment emqx 5.0 atteint 100 millions de connexions mqtt dans la nouvelle architecture mria + rlog
Operation of Py file
面试突击66:请求转发和请求重定向有什么区别?
获取美团,饿了么外卖cps和权益链接
C language student achievement management system
干货!高并发下秒杀商品,你必须知道的9个细节
[book club No. 13] + Chapter II packaging format of video files
单片机不支持printf 浮点类型的解决办法
pip下载包时出现不适配导致无法下载安装包:error: subprocess-exited-with-error;error: metadata-generation-failed;
Codeforces Round #794 (Div. 2)(A.B.C)