solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.31k stars 116 forks source link

Many suggestions #172

Closed peter8777555 closed 2 years ago

peter8777555 commented 2 years ago

Hi Sir,

See pictures for more details and thank you for good tool.

z1

z2

z3

z4

z5

z6

solemnwarning commented 2 years ago

Hi

Thank you for all the feedback, its good to know someone is using my software so much to have that much to say about it :)

See below for comments on some of the individual points:

z1

From cursor disassembly

The disassembly panel on the right will try to disassemble from the current cursor position - the only time it adjusts the start back or forwards is if there isn't a valid opcode starting at the current offset.

File Offset / VA / RVA

The virtual offsets feature is relatively new in rehex, and I've only recently started getting feedback from people using it - which is why a lot of parts of the program ignore it. I'm aiming to make everything use virtual addresses when virtual addressing is selected for the file in the main view when I get around to it.

z2

Add option for Dec/Hex input

Decimal offsets can be entered by simply omitting the "0x" prefix, or prefixing with a leading "0" for octal.

z3

Add option for text decode

If you mark a range of bytes with a particular text encoding (right click -> Set data type -> Text -> ...), it will be decoded down the side of the main view.

z6

Add Code Page (936/950/...) for CJK

This should be trivial to do - I'm using iconv for the conversion so get access to all encodings it supports for free (list here). As you can see the list is huge and I don't know what ones are commonly/ever used... so if any in particular are commonly used for CJK (or any other languages), please list them and I'll add them all.

peter8777555 commented 2 years ago

Hi ! Sir,

Please add code page for CJK text

CP437

GBK CP936

CP950

SHIFT-JIS CP932

UHC CP949

za

zb

zc

peter8777555 commented 2 years ago

zd

a1

ze

solemnwarning commented 2 years ago

FYI I've added the extra code pages and support for rendering wide characters in the text view, you can get a build of the current master branch from here: https://buildkite.com/solemnwarning/rehex/builds?branch=master

solemnwarning commented 2 years ago

Base options added to "Jump to offset" dialog:

image

solemnwarning commented 2 years ago

I think pretty much everything in this ticket is either fixed or tracked in another ticket now, so closing.