命令 | 官网解释 | 白话文 |
raw(pkt) | assemble the packet | 组装数据包 |
hexdump(pkt) | have a hexadecimal dump | 转换成十六进制数据 |
ls(pkt) | have the list of fields values | 查看指端列表值 |
pkt.summary() | for a one-line summary | 第一行摘要 |
pkt.show() | for a developed view of the packet | 开发视图查看包 |
pkt.show2() | same as show but on the assembled packet (checksum is calculated, for instance) | 与show相同,但是在组装的包上(例如,计算校验和) |
pkt.sprintf() | fills a format string with fields values of the packet | 用包的字段值填充格式字符串 |
pkt.decode_payload_as() | changes the way the payload is decoded | 改变有效载荷的解码方式 |
pkt.psdump() | draws a PostScript diagram with explained dissection | |
pkt.pdfdump() | draws a PDF with explained dissection | |
pkt.command() | return a Scapy command that can generate the packet | 返回一个可以生成包的Scapy命令 |