ofs2rva(1)

ofs2rva1

Converts a pe raw file offset to relative virtual address

Usage

ofs2rva offset pefile

Overview

ofs2rva converts a raw file offset to RVA (Relative Virtual Address), if it's valid. It's part of pev, the PE file analysis toolkit.

offset is a valid PE file offset in decimal or hexadecimal (prefixed with 0x).

pefile is a PE32/PE32+ executable or dynamic linked library file.

Options

-V, --version

Show version.

--help

Show this help.

Examples

Get RVA of 0x1b9b8 offset of calc.exe:

$ ofs2rva 0x1b9b8 calc.exe

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11–12
  3. 13

Reporting bugs

Please, check the latest development code and report at https://github.com/mentebinaria/readpe/issues

From readpe 0.84-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.