Hacker News new | ask | show | jobs
by sedatk 775 days ago
Wow, the author's gone above and beyond. Pages and pages of useful information, and this statement is just in the middle of a sentence:

"turn this into a phony ELF binary"

That would alone take me days to tackle (convert a PowerPC PE into a PowerPC ELF). He mentions it like it's similar to copying a line on a text editor.

Totally amazed at the level of detail and amount of work went into this article. Thanks!

1 comments

(author) Thank you! But this was actually not very difficult. The PE format is well-documented, so I just extracted the code segment addresses, then generated an ELF by emitting code like this with a hacky Perl script:

  .globl main
  main:
     trap
     .byte 0xfc
     .byte 0xff
     ...
etc. Assemble, run that in gdb, it traps immediately, and just disassemble from PC.
The entire article was like 100X what anyone deserves. It was an awesome amount of detail. I absolutely love when random lost pieces of hardware/software history end up right where they belong with exactly the right person to know what to do with them.