GithubHelp home page GithubHelp logo

winpcap's Introduction

logo


WinPcap的抓包与还原

简介: 利用WinPcap库函数编写网络数据帧(以太网)捕获程序,首先捕获通过本机网卡的数据链路帧,根据以太网帧格式显示不同的字段,也可以进一步分析IP、TCP/UDP上层包格式。

开发环境: VS2015

开发语言: C++

用法:

  • 先双击打开WinPcap.exe
  • 输入设备编号,程序开始抓包,信息保存到“data.txt”中
  • 输入ctrl+C 终止程序

截图:

WinPcap

来自 CodeLadyJJY

winpcap's People

Contributors

codeladyjjy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

winpcap's Issues

没有考虑IP头存在可选字段的情况

IP头部存在可选字段时,IP头部长度超过20字节。问题代码如下:

udp_protocol = (udp_header*)(pkt_content + 14 + 20);
icmp_protocol = (icmp_header*)(pkt_content + 14 + 20);
tcp_protocol = (tcp_header*)(pkt_content + 14 + 20);

catch icmp packets failed

What is the problem with running successfully but no content in data.txt? Failed to catch icmp packets with ping command.

pcap.h 在哪

问下,程序里面有个pcap.h 的头文件,这个在github源代码中好像没啊...

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.