Jianle-Li / PE

PE common operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PE

PE common operations

1.所读PE文件中一处存在数据0D0D0A,Windows在读文件时会处理成0D0A,丢失其中一个0D
原因在于Windows处理该数据时,会将0A写成0D0A,对应ASCII为**\r\n**。

解决办法:将文件的读写模式由"r","w"改为"rb","wb"

About

PE common operations


Languages

Language:C++ 93.7%Language:C 6.3%