How to sniff HTTP packets in python?

后端 未结 4 820
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 15:26

I want to sniff all the HTTP packets in my computer via python(version2.6.. is this possible? can I do it with scapy, or without other external modules?

4条回答
  •  无人及你
    2020-12-05 15:45

    pypcap,https://code.google.com/p/pypcap/ simplified object-oriented Python extension module for libpcap - the current tcpdump.org version, the legacy version shipping with some of the BSD operating systems, and the WinPcap port for Windows.This is a Windows version.And if you are using #nix,just install pcap and dpkt module.

提交回复
热议问题