Git Product home page Git Product logo

tinydump's Introduction

tinydump

基于golang的嗅探抓包工具, 类似tcpdump

使用方式

环境依赖: libpcap
安装参考: http://www.blogjava.net/huyi2006/articles/127361.html

直接使用

release 文件夹提供了mac和linux的release版本,可以直接使用 (需要以sudo权限运行)

手动构建

go build

生成 tinydump 执行文件

命令参数

sudo ./tinydump -h

 [ -i interface ]
 [ -t timeout ]
 [ -c count ]
 [ -s snaplen ]
 [ -X hexdump ]
 [ -d dump file ]
 [ -r read file ]
 [ -h show usage]
 [ expression ]

sample

使用范例:

1.直接使用

$ sudo ./tinydump 

2.host过滤

$ sudo ./tinydump 'src 192.168.1.101 or dst 192.168.1.101'

3.端口过滤

$ sudo ./tinydump 'port 8000'

4.超时捕获 (时间单位为秒)

$ sudo ./tinydump -t 60

5.生成快照文件

$ sudo ./tinydump -d /tmp/test.cap

6.读取快照文件

$ sudo ./tinydump -r /tmp/test.cap

7.捕获指定行数的包

$ sudo ./tinydump -c 10

tinydump's People

Contributors

domac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.