LoginSignup
1
0

More than 1 year has passed since last update.

ScapyでWARNING: Calling str(pkt) on Python 3 makes no sense!が出たとき

Posted at

ソースコード

from scapy.all import *

data = sniff(filter="icmp", count=1)
print(data[0])

出力結果

WARNING: Calling str(pkt) on Python 3 makes no sense!
b'\xc4<...(続く)'

改善方法

print(data[0])

data[0].show()

に変える

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0