RVA2OFS(1)
π NAME π
rva2ofs β bestie, it converts a PE relative virtual address to a raw file offset β¨
π¦ SYNOPSIS π¦
rva2ofs rvs pefile
(okay yes, the synopsis literally says rvs and the description below says rva β I'm just the messenger, I promise I did not touch a single character π)
πΈ DESCRIPTION πΈ
So like, rva2ofs takes an RVA (that's a Relative Virtual Address, keep up π
) and converts it to a raw file offset, if possible. If it's not possible, well. It's not possible. It's part of pev, the PE file analysis toolkit β you know, the whole squad.
rva is a valid PE RVA in decimal or hexadecimal (prefixed with 0x). Decimal girlies and 0x hex girlies are both welcome here π«Ά
pefile is a PE32/PE32+ executable or dynamic linked library file.
β¨ OPTIONS β¨
-V,--versionβ show version. That's it, that's the whole vibe.--helpβ show this help. Iconic of it, honestly.
π EXAMPLES π
Get offset from RVA 0x12db of cards.dll:
$ rva2ofs 0x12db cards.dll
Look at that. One line. Ate and left no crumbs π
π REPORTING BUGS π
Please, check the latest development code and report at https://github.com/mentebinaria/readpe/issues
fr fr, check the newest code first before you come for us β maybe it's already fixed, maybe it's a skill issue, we'll find out together π
π SEE ALSO π
ofs2rva(1), pedis(1), pehash(1), peldd(1), pepack(1), peres(1), pescan(1), pesec(1), pestr(1), readpe(1)
π COPYRIGHT π
Copyright (C) 2012 - 2020 pev authors. License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/gpl-2.0.txt>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
no warranty bestie, you break it you bought it π
π SEE ALSO π
(the other direction of the same little journey, we love a round trip π¦)
okay that's the whole page!! this is the rva2ofs page from pev, sitting in section 1 of the General Commands Manual, and the footer just says RVA2OFS(1) because that's literally all it says β no extra date, no extra version, just the name doing main character energy at the bottom of the page β¨ mwah, go convert some addresses, ily π
π¦ where this page comes from
- alpine 3.24: pev-doc 0.82-r0 Β· GPL-2.0-or-later AND MIT AND BSD-2-Clause
- debian trixie: readpe 0.84-2 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu noble: readpe 0.82-3.1build2 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu questing: readpe 0.84-2
- ubuntu resolute: readpe 0.85.1-1 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu stonking: readpe 0.85.1-1build1 Β· GPL-2.0-or-later WITH OpenSSL Exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms