| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

监视网络来往包:pstat

监视网络来往包,纪录收到的包,需要pcap支持,可工作在windows和linux下。

可根据对方端口和ip来过滤,过滤方式有包含和不包含两种方式可选,纪录方式有裸数据、流量和文本。

本程序可用来做端口流量统计,或者详细的web请求日志,用于事后分析。

用法:
  pstat [-f <defaults file>] [-i <local nets>] [-d <data dir>] [-e] [-g <core>] [-n mode] [-i <iface|pcap file>]  [-d <path>] 
        [-v] [-x ] [-C] [-p] [-w] [-B <filter>] [-A <mode>] [-c <ip>] [-s <length>]

Options:
[--interface|-i] <interface|pcap>   | Input interface name (numeric/symbolic)
                                    | or pcap file path
[--data-dir|-d] <path>              | Data directory (must be writable).
                                    | Default: data
[--daemon|-e]                       | Daemonize pstat
[--dump-timeline|-C]                | Enable timeline dump.
[--pid|-G] <path>                   | Pid file path
[--kill|-k]                         | Kill Daemon
[--packet-filter|-B] <filter>       | Ingress packet filter (BPF filter)
[--snaplen|-s] <capture length>     | capture length,if length less then 1,set to 128(default:128)
[--output-mode|-A] <mode>           | Setup data output mode:
                                    | bit 0(1) - set 1 to Enable detail file output(default 1)
                                    | bit 1(2) - set 1 to Enable minute sum output(default 0)
                                    | bit 2(4) - set 1 to Enable raw data output(default 0)
[--local-networks|-m] <local nets>  | Local net ip (default: 192.168.1.2)
[--filter-ip|-c] <ip address>       | add ip to be ingored,16 max can be added
[--host-mode|-w]                    | treat filter ip to C class net(default no)
[--filter-port|-p]                  | add port into list to be watch,16 max can be added
[--block-mode|-n]                   | how to used port and ip list, block mod is 1, pass mode is 0:
                                    | bit 0(1) - port list  mode (default 0 )
                                    | bit 1(2) - ip list  mode (default 1)
[--rid-line|-x] <mode>              | set to 1 to get rid of lines in content(default 0)
[--defaults-file|-f] <file name>    | Use the specified defaults file
[--verbose|-v]                      | Verbose tracing
[--help|-h]                         | Help


项目主页:
http://www.open-open.com/lib/view/home/1445773252038

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1445773252038.html
pstat 网络技术