Giter Club home page Giter Club logo

composecap's Introduction

ComposeCap桌面端协议抓包软件(仿WireShark)


支持的功能

  • 协议抓包
  • 报文构造
  • 流量统计
  • 网络计费

使用到的库有


协议抓包

协议抓包支持以Hex形式查看报文的信息,以及解析支持的报文的主要字段

支持的协议类型

  • Ethernet
  • ARP
  • IPv4
  • ICMP
  • TCP
  • UDP

capture

协议抓包还支持BPF(Berkeley Packet Filter)的过滤条件 例如如下的条件语句

  • tcp port 80 (只抓TCP包,并且端口为80)
  • icmp (只抓ICMP类型的包)
  • src port 443 (只抓源端口为443的包)

更多的BPF过滤语句请查看 IBM Berkeley packet filters

filter


报文构造

报文构造只支持下列协议

  • Ethernet
  • IPv4
  • UDP
  • TCP 且构造的字节数少于60字节数,会自动进行补0x00填充

packetBuild


流量统计

流量统计功能部分为统计1S内的流量数,部分为统计总流量数

流量统计的思路为判断以太网报文中的目的MAC地址是否为本机MAC地址,若是则为下载流量,否则为上传流量

  • 上传速度(KB/S)
  • 下载速度(KB/S)
  • 每秒上传包数量(Packet/S)
  • 每秒下载包数量(Packet/S)
  • ARP包数量
  • ICMP包数量
  • TCP包数量
  • UDP包数量
  • DNS包数量
  • 总下载流量
  • 总上传流量
  • 总流量

traffic


流量计费

流量计费仅计算价格,输入每MB的费用,计算需要支付的金额😄

fee

composecap's People

Contributors

icyrockton 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.