News for hackers. Stuff that matters.
Re:Patching a Program Without Source Code by cptrfsn on Sunday June 14, 2009 @06:29PM (#657651)
Of course SoftICE does not have handy "save to executable" function (or at least it did not have it in the 90s when I last looked at it).

In that case you simply write down binary signatures surrounding your patch, open executable with any hex editor, find those signatures and patch. Then do binary diff, save it into CRK file and distribute.

PS. I wonder why this guy copied EDX into ECX instead of just doing PUSHF...

Re:Patching a Program Without Source Code by codexon on Sunday June 14, 2009 @07:37PM (#657711)
I forgot all about pushf. Anyway, the comments are working. I accidentally misconfigured my nginx to not log the antispam requests (and mistakenly not pass them to php either).
Re:Patching a Program Without Source Code by ralph on Monday June 15, 2009 @04:53AM (#658163)
I haven't used a hex-editor in decades. This is one of the few times where I still use Perl instead of Python.

    $ perl -i.bak -p0777e \
        'print STDERR s/\xe4\x0a\x00\x2d/\xde\xad\xbe\xef/g + 0 . "\n"' a.out
    1
    $ cmp -l a.out.bak a.out
      50161 344 336
      50162  12 255
      50163   0 276
      50164  55 357
    $
Perl prints the number of substitutions done. If it's 1, all's well.