当前位置:网站首页>Hack The Box - Web Requests Module详细讲解中文教程
Hack The Box - Web Requests Module详细讲解中文教程
2022-07-26 05:18:00 【renu08】
目录
网络协议................................................................................................................... 2
1.1HTTP协议...................................................................................................... 2
1.2HTTP的工作流程............................................................................................ 3
1.3CURL介绍............................................................................................................. 3
2.1HTTPS 协议.................................................................................................... 4
2.2HTTPS的工作流程.......................................................................................... 4
Headers..................................................................................................................... 4
1.1Http Request.................................................................................................. 4
1.2Http Response................................................................................................ 5
HTTP请求方法........................................................................................................... 5
了解web应用如何工作,不同的web应用是如何通过http request请求与后端服务器进行交互
网络协议
1.1HTTP协议
Http协议是应用层协议,用来获取www网上的资源,是以超文本的形式表示,包含链接和资源的一种文本形式,http交互模式是客户端和服务器模式,客户端发送request请求,服务器接受请求来执行操作,返回给客户端资源
Defalut port: 80
Tip:我们可以通过修改服务器的配置文件来修改默认端口
1.1.1URL
http通过url来获取到我们需要的资源内容,例如我们访问一个网站,url结构如下
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的工作流程

1.3CURL介绍
Curl是一个命令行下一个web浏览器,支持http和其他多种协议,能够发送多种web请求,在终端环境下推荐使用
例如: 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 协议
HTTPS协议是http协议的安全版本,使用这个协议网络传输的过程将要更加的安全,使用HTTPS协议,在整个网络传输的过程中,数据都是加密的,这样大大提高数据传输的安全性
2.2HTTPS的工作流程

Headers
1.1Http Request
下面让我们来看一个http request 请求头,如下

上面这个request请求的url是:
who_百度搜索http://www.baidu.com/baidu?tn=monline_7_dg&ie=utf-8&wd=who
GET HTTP请求的方法
/baidu?tn 资源目录
HTTP/1.1 HTTP协议的版本
1.2Http Response
下面我们来看一个http response 响应头,如下

HTTP/1.1是http协议版本,200OK是状态码,用来告诉客户端request请求执行的结果
HTTP请求方法
GET
POST
PUT
DELETE
CRUD API 当服务器提供给我们一个可以与后端数据库进行交互的的接口时,我们就可以用GET,POST,PUT,DELETE来对后端数据库进行操作,一一对应数据库的基本操作
CREATE (新增) POST
DELETE (删除) DELETE
UPDATE (修改) PUT
SELECT (查找) GET
边栏推荐
猜你喜欢

如何优雅的复现YOLOv5官方历程(二)——标注并训练自己的数据集

Basic methods of realizing licensing function in C language

SSH远程管理

Go-Excelize API源码阅读(六)—— DeleteSheet(sheet string)

mysql如果计算本月变动/本月增幅/同比变动/同比增幅?

Excel VBA: summarize calculation output results by date (SUMIF)

OD-Paper【2】:Fast R-CNN

Improve reduce parallelism in shuffle operation
![[acwing] 2983. Toys](/img/e4/f71949a00ae604703d2b39bffb7c80.png)
[acwing] 2983. Toys

Please elaborate on the implementation principle of synchronized and related locks
随机推荐
Development to testing: a six-year road to automation from scratch
Seata submits at details in two stages
DOM事件流 事件冒泡-事件捕获-事件委托
Getaverse,走向Web3的远方桥梁
测试必备工具之Fiddler,你真的了解吗?
Unity scene jump script
使用Ansible中的playbook
TZC 1283: simple sorting - function method
LeetCode链表问题——206.反转链表(一题一文学会链表)
no networks found in /etc/cni/net.d
87. 扰乱字符串
ABAP grammar learning (ALV)
LNMP架构
[acwing] 1268. Simple questions
JVM Lecture 2: class loading mechanism
Code audit CMS
Bash shortcut key to improve command line efficiency [Full Version]
Lesson 2 getting to know slam for the first time
Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop
jupyter notebook快捷键