{"blog_title":"\u3082\u3082\u3044\u308d\u30c6\u30af\u30ce\u30ed\u30b8\u30fc","image_url":null,"description":"Python\u3067pcap\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u6790\u3059\u308b\u306b\u306fscapy\u304c\u4fbf\u5229\u3002scapy\u3092\u7528\u3044\u3066pcap\u30d5\u30a1\u30a4\u30eb\u3092\u9010\u6b21\u7684\u306b\u89e3\u6790\u3059\u308b\u306b\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bsniff\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u3088\u3044\u3002 from scapy.all import * from datetime import datetime def analyze(pkt): # \u30ad\u30e3\u30d7\u30c1\u30e3\u65e5\u6642\u306fpkt.time\u304b\u3089unix timestamp\u3067\u5f97\u3089\u308c\u308b datetime_str = datetime.fromtimestamp(pkt.time).isoformat() return \"[%s] %s\" % (datetime_str, pkt.summary\u2026","type":"rich","height":"190","provider_url":"https://hatena.blog","author_name":"inaz2","version":"1.0","published":"2013-04-12 02:09:25","author_url":"https://blog.hatena.ne.jp/inaz2/","url":"https://inaz2.hatenablog.com/entry/2013/04/12/020925","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaz2.hatenablog.com%2Fentry%2F2013%2F04%2F12%2F020925\" title=\" scapy\u3067pcap\u30d5\u30a1\u30a4\u30eb\u3092\u9010\u6b21\u7684\u306b\u89e3\u6790\u3059\u308b - \u3082\u3082\u3044\u308d\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" scapy\u3067pcap\u30d5\u30a1\u30a4\u30eb\u3092\u9010\u6b21\u7684\u306b\u89e3\u6790\u3059\u308b","categories":["Python"],"blog_url":"https://inaz2.hatenablog.com/","width":"100%","provider_name":"Hatena Blog"}