Created
August 1, 2018 16:54
-
-
Save hyuunnn/ff2ae70b563df5290cedaf5b0ba3879f to your computer and use it in GitHub Desktop.
RVA to RAW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAW = 파일에서의 주소 | |
RVA = 메모리에서의 주소 | |
VirtualAddress = 메모리에서의 섹션 시작 위치 (idaapi Segments()로 가능) SegStart | |
PointerToRawData = 파일에서의 섹션 시작 위치 (offset = idaapi.get_fileregion_offset(ea)) | |
0x1c094 = 0x41E494 - 0x41c000 + 0x19c00 | |
RAW = RVA - VirtualAddress + PointerToRawData | |
VirtualAddress = RVA + ImageBase | |
RVA = VirtualAddress + PointerToRawData - RAW | |
-----> 그냥 idaapi.get_fileregion_ea(addr) 이거 쓰면 해결.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment