在Wireshark中,如何过滤出所有包含特定字符串"example"的HTTP请求 (2分) A http.request contains "example" B http contains "example" C http.host contains "example" D http.request.uri contains "example"
时间: 2023-07-06 20:43:00 浏览: 107
在Wireshark中,可以使用过滤器来过滤出包含特定字符串的HTTP请求。正确的过滤器语法是http.request.uri contains "example"。
因此,选项D“http.request.uri contains "example"”是正确的。
选项A“http.request contains "example"”只会匹配HTTP请求中包含“example”的部分,而不一定是URI。
选项B“http contains "example"”会匹配包含“example”的所有HTTP报文,包括请求和响应。
选项C“http.host contains "example"”只会匹配包含“example”的HTTP Host字段。
因此,选项D“http.request.uri contains "example"”是最准确的过滤器,可以过滤出所有包含特定字符串“example”的HTTP请求。
答案:D http.request.uri contains "example"。
相关问题
13.在Wireshark中,如何查找包含特定字符串"example"的HTTPGET请求?( 1.5分) A. http.request.method=="GET”&& http.request.uri contains "example"B.http.host contains "example" C.http contains "example" D.http.request.uri contains "example"
正确答案是 D. http.request.uri contains "example"。Wireshark 是一款常用的网络协议分析工具,可以用来抓取和分析网络数据包。要查找包含特定字符串的 HTTP GET 请求,可以使用 Wireshark 的过滤器功能。其中,http.request.uri 表示 HTTP 请求的 URI(Uniform Resource Identifier),可以使用 contains 操作符来查找包含特定字符串的请求。因此,正确的过滤器表达式应该是 http.request.uri contains "example"。而其他选项中,http.request.method=="GET"&& http.request.uri contains "example" 表示查找 HTTP 请求方法为 GET 并且 URI 包含特定字符串的请求,http.host contains "example" 表示查找主机名中包含特定字符串的请求,http contains "example" 表示查找整个 HTTP 报文中包含特定字符串的请求,这些都不符合题目所要求的条件。
wireshark如何过滤http请求
要过滤HTTP请求,请按照以下步骤操作:
1. 打开Wireshark并启动捕获。
2. 找到并选择“过滤器”字段。
3. 输入以下过滤条件:http.request.method == GET || http.request.method == POST
4. 点击“应用”按钮以应用过滤条件。
5. Wireshark现在只会显示所有HTTP GET和POST请求的网络流量。
请注意,这个过滤条件将匹配所有HTTP GET和POST请求。如果要匹配其他HTTP请求方法,请将“GET”和“POST”替换为其他方法。此外,如果您只想过滤来自特定IP地址或特定端口的HTTP请求,请使用其他过滤条件,例如“ip.addr == [IP地址] && tcp.port == [端口号]”。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)