def get_key_in(pcap_file):
""" Extract keyboard input reports from a pcap file.
The extraction depends only on the size of packets. """
pcap = rdpcap(pcap_file)
in_reports = []
for p in pcap:
if len(p) == 35:
in_reports.append(p.load[-8:])
return in_reports
评论列表
文章目录