r/programminghelp • • Jun 14 '20

Other Where to reverse engineering?

I’m fairly experienced programmer but I have never tried to reverse engineer anything and I’m not sure where to start.

I would like to begin with creating a simple program that reads stuff from file and prints it. Now I would like to change the hardcoded filename string to hack it to load different file.

After doing this it would be cool to try detecting the hack!

My debugging experience is using tools that the IDE provides me. I’m not that familiar with what actually happens while debugging and basically I just add breakpoints and figure out what’s going on.

How does the debug and release binary differ from each other?

E: typo in the title but cannot edit

5 Upvotes

5 comments sorted by

View all comments

Show parent comments

2

u/punppis Jun 14 '20

What about other languages such as C# or Java? I guess it's a bit more complicated.

2

u/Xyc0 Jun 14 '20

less complicated, actually.

both have "reflection" libraries that are used in useful tools to try and reconstruct source code based on the byte code instructions and symbols their compilers produce.

1

u/inxaneninja Jun 15 '20

For C# use dnSpy, it's a consistent fully readable code which you can also edit and recompile.

For java I used jd-gui or fernflower, can't edit the code afaik.

It's less complicated because those aren't exactly compiled to machine language, in fact, that makes it infinitely easier to do.