因为须要调试pc服务器打印胶片和设备上直接打印胶片之间的区别,研发要求我抓包分析2者之间的差异,可是很快面临一个问题,我没有权限动交换机的权限,他们也没有在交换机上配置端口镜像,因而只好去找小HUB,淘汰了块10几年的集线器,这个几乎快被遗忘的网络设备,因为他是共享网络,容易形成网络事故,不少场地上是禁止使用的,可是他是网络抓包的好工具。。。我找遍每个角落,都找不到小hub,因而乎让北京的同事给我快递一个过来,惋惜EMS再次发扬国企的老大做风,都4天了,我等到花儿都谢了,个人快递还没到,没办法,只好另想办法。。。服务器
- C:\Program Files\WinPcap>rpcapd.exe -h
- USAGE:
- rpcapd [-b <address>] [-p <port>] [-6] [-l <host_list>] [-a <host,port>]
- [-n] [-v] [-d] [-s <file>] [-f <file>]
- -b <address>: the address to bind to (either numeric or literal).
- Default: it binds to all local IPv4 addresses
- -p <port>: the port to bind to. Default: it binds to port 2002
- -4: use only IPv4 (default both IPv4 and IPv6 waiting sockets are used)
- -l <host_list>: a file that keeps the list of the hosts which are allowed
- to connect to this server (if more than one, list them one per line).
- We suggest to use literal names (instead of numeric ones) in order to
- avoid problems with different address families
- -n: permit NULL authentication (usually used with '-l')
- -a <host,port>: run in active mode when connecting to 'host' on port 'port'
- In case 'port' is omitted, the default port (2003) is used
- -v: run in active mode only (default: if '-a' is specified, it accepts
- passive connections as well
- -d: run in daemon mode (UNIX only) or as a service (Win32 only)
- Warning (Win32): this switch is provided automatically when the service
- is started from the control panel
- -s <file>: save the current configuration to file
- -f <file>: load the current configuration from file; all the switches
- specified from the command line are ignored
- -h: print this help screen
咱们点击“Add Remote Interface”,弹出添加远程接口的窗口:网络
咱们在host里面填入remote端的IP,端口时2002,若是不知道能够从rcapd的参数里面看到服务的端口号,若是你在开remote端的服务没有加-n参数的话,这里须要输入用户名和密码,而后点击"OK"就能够了,最后的页面应该是这样的:socket
上面能够看到3块网卡,由于我这里的remote端由2个网卡,本机一块网卡,因此有3快,我吧要抓包的那块网卡勾上,而后点击下面的start按钮,就能够开始抓包了。。。ide
呵呵,抓包配置基本到此为止,最后附上一张抓到包后的截图作为收尾:工具