Code Monkey home page Code Monkey logo

pcap_parser's Introduction

pcap_parser

一个简单的多线程pcap解包程序,解析关键字段并存入mysql。基于python+scapy multithreading scapy based pcap parser. get time, mac_src, mac_dst, ip_src, ip_dst, ip_proto, sport, dport from pacp, then store them into mysql

pcap解析

  • 一个基于python的多线程pcap解析工具。程序调用了scapy的函数进行pcap包解析,现阶段只解析了每一帧的time, mac_src, mac_dst, ip_src, ip_dst, ip_proto, sport, dport, 后续会加入对其他部分的解析。
  • 每个解析线程(生产者)解析pcap时获取到这些字段后,存入queue队列。多个存程序(消费者)从queue中读取数据,存入mysql数据库。这里的生产者和消费者是从*队列(queue)*的角度来看的
  • 存在疑惑:对python中queue与mysql存的原理理解不透彻,程序中的锁是否有必要加?

pcap_parser's People

Contributors

huhsinpang avatar

Stargazers

Shaowei Pu avatar

Watchers

 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.