当前位置:网站首页>Hack the box - Web requests module detailed Chinese tutorial
Hack the box - Web requests module detailed Chinese tutorial
2022-07-26 05:25:00 【renu08】
Catalog
Network protocol ................................................................................................................... 2
1.1HTTP agreement ...................................................................................................... 2
1.2HTTP workflow ............................................................................................ 3
1.3CURL Introduce ............................................................................................................. 3
2.1HTTPS agreement .................................................................................................... 4
2.2HTTPS workflow .......................................................................................... 4
Headers..................................................................................................................... 4
1.1Http Request.................................................................................................. 4
1.2Http Response................................................................................................ 5
HTTP Request method ........................................................................................................... 5
understand web How applications work , Different web How applications pass http request Request to interact with the back-end server
Network protocol
1.1HTTP agreement
Http Protocol is the application layer protocol , Used to obtain www Resources on the Internet , It is expressed in the form of hypertext , A form of text that contains links and resources ,http The interaction mode is client and server mode , The client sends request request , The server accepts requests to perform operations , Return to the client resource
Defalut port: 80
Tip: We can modify the default port by modifying the configuration file of the server
1.1.1URL
http adopt url To get the resources we need , For example, we visit a website ,url The structure is as follows
http://admin:[email protected]:80/dashboard.php?login=true
scheme | user | host | port | path | query string |
http | admin:password | www.localhost | 80 | dashboard.php | login=true |
1.2HTTP workflow

1.3CURL Introduce
Curl Is a command line next web browser , Support http And many other agreements , Can send multiple web request , It is recommended to use in terminal environment
for example : curl http://www.baidu.com
Usage: curl [options...] <url>
-d, --data <data> HTTP POST data
-h, --help <category> Get help for commands
-i, --include Include protocol response headers in the output
-o, --output <file> Write to file instead of stdout
-O, --remote-name Write output to a file named as the remote file
-s, --silent Silent mode
-u, --user <user:password> Server user and password
-A, --user-agent <name> Send User-Agent <name> to server
-v, --verbose Make the operation more talkative
This is not the full help, this menu is stripped into categories.
Use "--help category" to get an overview of all categories.
Use the user manual `man curl` or the "--help all" flag for all options.
2.1HTTPS agreement
HTTPS Agreement is http The secure version of the protocol , The process of network transmission using this protocol will be more secure , Use HTTPS agreement , In the whole process of network transmission , Data is encrypted , This greatly improves the security of data transmission
2.2HTTPS workflow

Headers
1.1Http Request
Let's take a look at one http request Request header , as follows

Above this request Requested url yes :
who_ Baidu search http://www.baidu.com/baidu?tn=monline_7_dg&ie=utf-8&wd=who
GET HTTP Requested method
/baidu?tn Resource directory
HTTP/1.1 HTTP Version of protocol
1.2Http Response
So let's look at one http response Response head , as follows

HTTP/1.1 yes http Protocol version ,200OK It's the status code , Used to tell the client request The result of the request execution
HTTP Request method
GET
POST
PUT
DELETE
CRUD API When the server provides us with an interface that can interact with the back-end database , We can use it GET,POST,PUT,DELETE To operate the backend database , One by one corresponds to the basic operation of the database
CREATE ( newly added ) POST
DELETE ( Delete ) DELETE
UPDATE ( modify ) PUT
SELECT ( lookup ) GET
边栏推荐
- OD-Paper【2】:Fast R-CNN
- CLM land surface process model
- SSTI payload and various bypass methods
- pillow的原因ImportError: cannot import name ‘PILLOW_VERSION‘ from ‘PIL‘,如何安装pillow<7.0.0
- 攻防世界-FlatScience
- SSTI-payload和各种绕过方法
- 新人如何做好功能测试,学会这几项够用了
- Practical technology of SWAT Model in simulation of hydrology, water resources and non-point source pollution
- Seata submits at details in two stages
- MySQL master-slave synchronization and master-slave synchronization delay solution
猜你喜欢

嵌入式开发小记,实用小知识分享

攻防世界-FlatScience

代码审计之百家cms
C language explanation series - understanding of functions (4) declaration and definition of functions, simple exercises

Ansible中常用的模块

LeetCode链表问题——206.反转链表(一题一文学会链表)

Application of remote sensing, GIS and GPS technology in hydrology, meteorology, disasters, ecology, environment and health

MongoDB 常用命令

NetCore MySql The user specified as a definer (‘admin‘@‘%‘) does not exist

Mysql优化
随机推荐
C language force buckle question 42 of rain. Four methods - violence, dynamic planning, stack, double pointer
Uniapp applet framework - a set of code, multi segment coverage
Security permission management details
Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
ABAP语法学习(ALV)
10. Regular expression matching
Attack and defense world flatscience
Thread三种实现方式 和 Handler的用法
家居vr全景展示制作提高客户转化
If MySQL calculates the current month change / current month increase / year-on-year change / year-on-year increase?
Practical technology of SWAT Model in simulation of hydrology, water resources and non-point source pollution
No background, no education? Is it really hopeless for specialist testers to enter Internet factories?
Seata submits at details in two stages
Yuancosmos provides a digital social platform for fashion design display
[pytorch] install torch 1.8.1 and check whether torch version and GPU are available
ALV program collection
Bash shortcut key to improve command line efficiency [Full Version]
LAMP架构
使用Ansible中的playbook
C语言函数