wireshark http抓包命令行详解
This article is a quick and easy HowTo detailing the use of Wireshark or another network sniffing program to debug your Apache .htaccess or httpd.conf files.
First some shell based tools.
wget -S --spider URLlynx -head -dump URLcurl -I URLHEAD URLGET -de URLw3m -dump_head URLsiege -g URL
- Display Filters
- HTTP Display Filter Options
- View All HTTP trafic
- View all flash video stuff
- Show non-google cache-control
- Show only certain responses
- Show only certain HTTP methods
- Show only filetypes that begin with "text"
- Show only javascript
- Show all http with content-type="image/(gif|jpeg|png|etc)"
- Show all http with content-type="image/gif"
- Do not show content http, only headers
- Setting HTTP Preferences
Set Your Capture-filter to
tcp port 80and then start capturing. Use any of the following display filters to view the data you want.
Display Filters ^
HTTP Display Filter Options ^
- http.accept String Accept
- http.accept_encoding String Accept Encoding
- http.accept_language String Accept-Language
- http.authbasic String Credentials
- http.authorization String Authorization
- http.cache_control String Cache-Control
- http.connection String Connection
- http.content_encoding String Content-Encoding
- http.content_length Unsigned 32-bit integer Content-Length
- http.content_type String Content-Type
- http.cookie String Cookie
- http.date String Date
- http.host String Host
- http.last_modified String Last-Modified
- http.location String Location
- http.notification Boolean Notification
- http.proxy_authenticate String Proxy-Authenticate
- http.proxy_authorization String Proxy-Authorization
- http.referer String Referer
- http.request Boolean Request
- http.request.method String Request Method
- http.request.uri String Request URI
- http.request.version String Request Version
- http.response Boolean Response
- http.response.code Unsigned 16-bit integer Response Code
- http.server String Server
- http.set_cookie String Set-Cookie
- http.transfer_encoding String Transfer-Encoding
- http.user_agent String User-Agent
- http.www_authenticate String WWW-Authenticate
- http.x_forwarded_for String X-Forwarded-For
View All HTTP trafic ^
http
View all flash video stuff ^
http.request.uri contains "flv" or http.request.uri contains "swf" or http.content_type contains "flash" or http.content_type contains "video"
Show non-google cache-control ^
http.cache_control != "private, x-gzip-ok="""
or
(((((http.cache_control != "private, x-gzip-ok=""") && !(http.cache_control == "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform, private")) && !(http.cache_control == "max-age=0, no-store")) && !(http.cache_control == "private")) && !(http.cache_control == "no-cache")) && !(http.cache_control == "no-transform")
Show only certain responses ^
#404: page not found
http.response.code == 404
#200: OK
http.response.code == 200
Show only certain HTTP methods ^
http.request.method == "POST" || http.request.method == "PUT"
Show only filetypes that begin with "text" ^
http.content_type[0:4] == "text"
Show only javascript ^
http.content_type contains "javascript"
Show all http with content-type="image/(gif|jpeg|png|etc)" ^
http.content_type[0:5] == "image"
Show all http with content-type="image/gif" ^
http.content_type == "image/gif"
Do not show content http, only headers ^
http.response !=0 || http.request.method != "TRACE"
Setting HTTP Preferences ^
Reassemble HTTP headers spanning multiple TCP segments: ^
When this preference is enabled, then the HTTP dissector will reassemble the HTTP header if it has been transmitted over more than one TCP segment. Although it is unusual for headers span multiple segments, it's not impossible, and this should be checked if you expect to view the contents of the HTTP conversation.
Reassemble HTTP bodies spanning multiple TCP segments: ^
When this preference is enabled, then the HTTP dissector will reassemble the HTTP body if it has been transmitted over more than one TCP segment. All but the smallest of responses will span multiple segments, so this preference should be checked if you expect to view the contents of the HTTP conversation.See TCP Reassembly for an example on how to use this to extract JPEG images from a capture.
Reassemble chunked transfer-coded bodies: ^
When this preference is enabled, any chunked transfer-coding response spanning multiple segments will be decoded and the payload (the body of the response) will be added to the protocol tree. This happens automatically for one segment responses.
Uncompress entity bodies: ^
Enable this preference if gzip or deflate encoded (compressed) HTTP entities should be decoded. This allows the visualisation of the compressed data, and possibly the dissection of it.
wireshark http抓包命令行详解的更多相关文章
- Scrapy框架的命令行详解【转】
Scrapy框架的命令行详解 请给作者点赞 --> 原文链接 这篇文章主要是对的scrapy命令行使用的一个介绍 创建爬虫项目 scrapy startproject 项目名例子如下: loca ...
- [转载]OpenSSL中文手册之命令行详解(未完待续)
声明:OpenSSL之命令行详解是根据卢队长发布在https://blog.csdn.net/as3luyuan123/article/details/16105475的系列文章整理修改而成,我自己 ...
- 7Z命令行详解
7z.exe在CMD窗口的使用说明如下: 7-Zip (A) 4.57 Copyright (c) 1999-2007 Igor Pavlov 2007-12-06 Usage: 7za <co ...
- 7-zip命令行详解
一.简介 7z,全称7-Zip, 是一款开源软件.是目前公认的压缩比例最大的压缩解压软件. 主要特征: # 全新的LZMA算法加大了7z格式的压缩比 # 支持格式: * 压缩 / 解压缩:7z, XZ ...
- linux下抓包工具tcpdump详解
本文转自:http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html 简介 用简单的话来定义tcpdump,就是:dump the ...
- gcc命令行详解
介绍] ----------------------------------------- 常见用法: GCC 选项 GCC 有超过100个的编译选项可用. 这些选项中的许多你可能永远都不会用到, 但 ...
- [转] Linux抓包工具tcpdump详解
http://www.ha97.com/4550.html PS:tcpdump是一个用于截取网络分组,并输出分组内容的工具,简单说就是数据包抓包工具.tcpdump凭借强大的功能和灵活的截取策略,使 ...
- Linux抓包工具tcpdump详解
tcpdump是一个用于截取网络分组,并输出分组内容的工具,简单说就是数据包抓包工具.tcpdump凭借强大的功能和灵活的截取策略,使其成为Linux系统下用于网络分析和问题排查的首选工具. tcpd ...
- 抓包工具Fidder详解(主要来抓取Android中app的请求)
今天闲着没吊事,来写一篇关于怎么抓取Android中的app数据包?工欲行其事,必先利其器,上网google了一下,发现了一款神器:Fiddler,这个貌似是所有软件开发者必备神器呀!这款工具不仅可以 ...
随机推荐
- 前端自动化神器LiveReload配合浏览器和less/sass使用方法
前言:搜了半天,各种推荐,什么十大工具啦.优秀工具集合啦之类的咸淡文章,就是没有一个讲怎么弄的.配合官网的article自己研究了半天总算配置好了.顺便吐槽下官网关于sass/less设置这块说的模糊 ...
- myeclipse自动import
不管包什么的 直接把代码全写出来 再按 ctrl + shift +o 这是自动导包的 前提是你写的代码是正确的
- sql-char和varchar,nvarchar的区别
数据类型的比较 char表示的是固定长度,最长n个字 varchar表示的是实际长度的数据类型 比如:如果是char类型,当你输入字符小于长度时,后补空格:而是varchar类型时,则表示你输入字符的 ...
- Excel 计算 tips
1. 对一列数据想看看,distinct的结果 选中数据区域(包含列名),插入pivot table 2. 想检查一个单元格的值在不在某一列中,并返回标志值 =IF (COUNTIF(B:B,A1) ...
- python中对字典按照value排序
age = {'a':24, 'd':35, 'c':12} print sorted(age.items(),key = lambda age:age[1]) 使用到了lambda和sorted函数 ...
- 五种开源协议的比较(BSD_Apache_GPL_LGPL_MIT)
现今存在的开源协议很多,而经过Open Source Initiative组织通过批准的开源协议目前有58种(http://www.opensource.org/licenses/alphabetic ...
- php中静态变量和静态方法
1,静态变量:所有对象共享的变量成为静态变量.静态变量类似于全局变量,不过全局变量破坏对象的封装性,因此其对应于面向过程:静态变量对应于面向对象. 2,全局变量,全局变量的使用实例如下,声明全局变量时 ...
- Redux初探与异步数据流
基本认知 先贴一张redux的基本结构图 原图来自<UNIDIRECTIONAL USER INTERFACE ARCHITECTURES> 在这张图中,我们可以很清晰的看到,view中产 ...
- Spring学习1-初识Spring
一.简介 1.Spring是一个开源的控制反转(Inversion of Control ,IoC)和面向切面(AOP)的容器框架.它的主要目得是简化企业开发. 2.为何要使用Spring? ...
- MyEclipse------execute()使用方法
execute()方法应该仅在语句能返回多个ResultSet对象,多个更新计数或ResultSet对象与更新计数的组合时使用. testExecute.jsp <%@ page languag ...