Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了解决隐写术中的一些问题,我需要以十六进制查找图像的结尾
我在用
xxd image.jpeg|grep ffd9
当它位于 C 和 D 列时,它确实返回具有 ffd9 的行
但是当它位于 9 和 A 列时,它不会返回任何内容
使用GNU grep这将为您提供 EOI 标记的字节偏移量:
LC_ALL=C grep -oabUP "\xFF\xD9" image.jpeg
以供参考: