Thread View: news.software.readers
3 messages
3 total messages
Started by Sqwertz
Mon, 21 Jul 2014 18:38
Editing Dialog Binary
Author: Sqwertz
Date: Mon, 21 Jul 2014 18:38
Date: Mon, 21 Jul 2014 18:38
18 lines
1909 bytes
1909 bytes
Pre Windows 8 I used to be able to edit the 40tude Dialog binary and change a small string without affecting it's operation (other than the display of the string in question). I use Hex Editor Neo, change 4 bytes (a string), and the resulting file length is the exact same as the original. But now when I edit the binary and try and run it, the OS spits out a warning dialog that reports "The file 'dialog.exe' seems to be corrupt!" and it quits back to the desktop. Is there some sort of mechanism in Windows 8 that detects the file has been tampered with and refuses to run it? Is there a file checksum stored someplace, maybe? Date/time stamp maybe? (Granted, this is not really a newsreader question, but a general OS internals question). -sw
Re: Editing Dialog Binary
Author: Bernd Rose
Date: Tue, 22 Jul 2014 20:01
Date: Tue, 22 Jul 2014 20:01
27 lines
2596 bytes
2596 bytes
On Mon, 21 July 2014 13:38:05 -0500, Sqwertz wrote: [Windows 8 running patched *.exe] > But now when I edit the binary and try and run it, the OS spits out a > warning dialog that reports "The file 'dialog.exe' seems to be > corrupt!" and it quits back to the desktop. > > Is there some sort of mechanism in Windows 8 that detects the file has > been tampered with and refuses to run it? Is there a file checksum > stored someplace, maybe? Date/time stamp maybe? The *.exe file format contains checksums. But they usually are ignored, as long as the program isn't compiled to evaluate them, itself. I just patched a .41 of Dialog inside Win8.1 and ran it without problems. Probably, you tried to patch a .84 of Dialog. This isn't possible (or rather: very difficult) - /independently/ of the OS. The .84 introduced special sector checksums, which are hard to circumvent. Since I regard the .84 as to be avoided, anyway, I won't post any instructions on how it could be done, regardless... If the version you tried to patch /wasn't/ .84, then you either changed a wrong (essential) part of the code. Or you have additional software (likely an AV program) running, which caused above described behavior. HTH. Bernd
Re: Editing Dialog Binary
Author: Sqwertz
Date: Wed, 23 Jul 2014 04:57
Date: Wed, 23 Jul 2014 04:57
33 lines
2719 bytes
2719 bytes
On Tue, 22 Jul 2014 22:01:21 +0200, Bernd Rose wrote: > On Mon, 21 July 2014 13:38:05 -0500, Sqwertz wrote: > > [Windows 8 running patched *.exe] >> But now when I edit the binary and try and run it, the OS spits out a >> warning dialog that reports "The file 'dialog.exe' seems to be >> corrupt!" and it quits back to the desktop. >> >> Is there some sort of mechanism in Windows 8 that detects the file has >> been tampered with and refuses to run it? Is there a file checksum >> stored someplace, maybe? Date/time stamp maybe? > > The *.exe file format contains checksums. But they usually are ignored, > as long as the program isn't compiled to evaluate them, itself. I just > patched a .41 of Dialog inside Win8.1 and ran it without problems. > > Probably, you tried to patch a .84 of Dialog. This isn't possible (or > rather: very difficult) - /independently/ of the OS. The .84 introduced > special sector checksums, which are hard to circumvent. Since I regard > the .84 as to be avoided, anyway, I won't post any instructions on how > it could be done, regardless... That would be it, then. I switched to .84 when I moved over to Windows 7 because I was having some sort of malloc or segfault issues that .84 solved. Previously I was patching .41 in XP. I have been using .84 quite heavily for a couple years and not had any problems. Thanks for the explanation of why the behavior changed. -sw
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads