extractor.py 文件源码

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

项目:firmflaws 作者: Ganapati 项目源码 文件源码
def io_dd(indir, offset, size, outdir):
        """
        Given a path to a target file, extract size bytes from specified offset
        to given output file.
        """
        if not size:
            return

        with open(indir, "rb") as ifp:
            with open(outdir, "wb") as ofp:
                ifp.seek(offset, 0)
                ofp.write(ifp.read(size))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号