News for hackers. Stuff that matters.
Re:Panopticon: A libre, cross platform disassembler for reve... by SCHiM on Monday May 09, 2016 @02:23PM (#11661949)
As long as all the instructions are the same size (or smaller padded with no-operation instructions) then yes. If, however, you do change the size of the application all relocation deltas need to be changed, and all relative jumps and calls need to be recalculated.
Re:Panopticon: A libre, cross platform disassembler for reve... by tptacek on Monday May 09, 2016 @02:37PM (#11662051)
There are sometimes tricks that get you around this problem, too: you can sometimes patch in a trampoline, which gives you some flexibility in the instructions you get to use.
Re:Panopticon: A libre, cross platform disassembler for reve... by iheartmemcache on Monday May 09, 2016 @03:47PM (#11662576)
An alternate direction rather than your standard jmp/displacement/nop'ing-to-align would be to use Dyninst[1] and live patch in memory[2]. Really though, your standard hex-editor will have facilities to alter all the necessary relatives. If you have access to modify the binary, no need to put in a trampoline (though it's awfully handy when playing CTFs!)

Honestly, do we really need another static analysis tool? Hopper and radare2 have covered the open source gap fairly well. I'd put r2 on near-power-parity of IDA if you invest the time to learn and configure it, which admittedly is an expensive proposition in labor who already knows IDA. It'll take him more days in salary to learn a new platform than just to pay the 5k and get him a IDA/HexRays license.

[1] U of Maryland holds the patent; information here, https://www.google.co.uk/patents/US8510723 [2] https://www.cs.umd.edu/class/fall2005/cmsc714/Lectures/byrd-... Though, I'm sure you've seen it already

Re:Panopticon: A libre, cross platform disassembler for reve... by flanfly on Monday May 09, 2016 @04:24PM (#11662840)
>Honestly, do we really need another static analysis tool?

Definitely. IDA Pro is proprietary software and the possibilities of IDAPython are limited. IDA Pro mostly ignores the last two decades of research done in the field of binary program analysis. It still relies on pattern matching compilers instead of using semantics driven methods that have been around for >10ys. While there exist tools like BAP, BitBlaze, Jackstab and Bindead. They are not really usable for people w/o graduate student level understanding of program analysis. This is where Panopticon fits in.

Re:Panopticon: A libre, cross platform disassembler for reve... by tptacek on Monday May 09, 2016 @05:10PM (#11663235)
IDA's licensing is also onerous.
Re:Panopticon: A libre, cross platform disassembler for reve... by georgiecasey on Monday May 09, 2016 @03:54PM (#11662623)
i was trying to edit one byte in an ELF, no change in file size and it kept crashing. i read that each section of code is hashed and obviously my byte edit changed the hash. i was pretty out of my depth tbh.
Re:Panopticon: A libre, cross platform disassembler for reve... by ndesaulniers on Monday May 09, 2016 @04:06PM (#11662707)
Sometimes code will add additional checks such as hashes to verify that parts of the text section haven't been modified. Should be able to remove those checks, too. Just have to track them all down.
Re:Panopticon: A libre, cross platform disassembler for reve... by psifertex on Tuesday May 10, 2016 @04:05AM (#11665803)
To detect hashes like that, use a debugger that supports memory break points and set a read breakpoint on the instruction you changed. It usually makes it a lot easier to identify where the checksum is calculated.