Re: Identical binaries from same source code

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



tararot2 wrote:
Hi,
I have to homologate my binaries so I need them to be byte-per-byte
identical after each compilation (if the source code is the same,
logically). Does anybody know how to achieve that with either compiler
options or modifying some parts of the binaries?
After some research I've succesfully patched:
- timestamp: in 0x88 address, I have set to zero.
- GUID after <PrivateImplementationDetails>: find this text in file
and set GUID to zero.
but there is an unknown data block after what I supose to be the
strings declarations and I don't know what to do with. In some cases,
setting it to 0's works but in other application hangs. I cannot find
a generic way to clean it.
I need to do that automatically for generic binaries of .NET.

Thanks in advance.

If the source code doesn't change, and you want the same binary as you originally built, surely it would be easier to just keep a copy of the original binary so that you don't have to rebuild it?

If not, why this odd requirement? What problem are you hoping to solve with it?


--
Lasse Vågsæther Karlsen
mailto:lasse@xxxxxxxxxxx
http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3
.



Relevant Pages

  • Re: Identical binaries from same source code
    ... the same source to the same binaries multiple times if the homologating ... compilation to the homologation company. ... would it be possible to have a cache of source code + ... homologation company has the original source code. ...
    (microsoft.public.dotnet.languages.csharp)
  • Identical binaries from same source code
    ... I have to homologate my binaries so I need them to be byte-per-byte ... identical after each compilation (if the source code is the same, ... I have set to zero. ... I need to do that automatically for generic binaries of .NET. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [Full-Disclosure] THCIISSLame exploit
    ... The whole idea was binaries vs source code. ... problem with people releasing exploits. ... Yes, but you are able to compile the exploit code yourself, are you not? ...
    (Full-Disclosure)
  • [Full-Disclosure] viruses being sent to list
    ... First Amendment defines free speech. ... Therefore binaries do not belong to full disclosure. ... Source code postings are exempt from litigation because of the ... 3., Filters only deal with binaries, not source code. ...
    (Full-Disclosure)
  • RE: Possible gpl problem?
    ... distribution at all can acquire the source code. ... discriminate on the basis of who is trying to enforce the agreement. ... If I say "any third party may hire my services for $200/hr", ... the binaries knows how to obtain the source code. ...
    (Linux-Kernel)