keycode.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:sudo_root 作者: sudo-root-team 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号