Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to determine if two C# exe come from the same source Pin
cwster14-Jan-09 9:39
cwster14-Jan-09 9:39 
GeneralRe: How to determine if two C# exe come from the same source Pin
Scott Dorman14-Jan-09 9:43
professionalScott Dorman14-Jan-09 9:43 
GeneralRe: How to determine if two C# exe come from the same source Pin
cwster14-Jan-09 9:54
cwster14-Jan-09 9:54 
GeneralRe: How to determine if two C# exe come from the same source Pin
Scott Dorman14-Jan-09 9:57
professionalScott Dorman14-Jan-09 9:57 
GeneralRe: How to determine if two C# exe come from the same source Pin
Dave Kreskowiak14-Jan-09 10:35
mveDave Kreskowiak14-Jan-09 10:35 
AnswerRe: How to determine if two C# exe come from the same source [modified] Pin
Luc Pattyn14-Jan-09 9:07
sitebuilderLuc Pattyn14-Jan-09 9:07 
GeneralRe: How to determine if two C# exe come from the same source Pin
cwster14-Jan-09 9:46
cwster14-Jan-09 9:46 
AnswerRe: How to determine if two C# exe come from the same source [modified] Pin
Luc Pattyn14-Jan-09 9:59
sitebuilderLuc Pattyn14-Jan-09 9:59 
Hi,


cwster wrote:
It's fairly common, at least in the embedded development world, to compare "executables" in this manner,


I am aware of that, however the original question seemed very general; under controlled circumstances
(same PC, same tools, same settings, etc, the only possible difference is in one or more source files) one can do much better obviously.

On the other hand, COFF/IntelHex/whatever you use to download code would be much simpler than the
Windows Portable Executable file format.

But anyway, I can always come up with a different source that results in an "exe" that is so similar that no tool in the world will be able to tell whether the original source file was used or not.
(comments, local var names, declaration order, etc etc).

Suggestion: calculate checksums for each source file (use a separate tool that runs before building
the "exe", and somehow add a DATA section that gets to contain those checksums (this is not hard
when another little tool creates a new source file from all the checksums, possibly using
assembly code or linker commands).

Alternative: you could replace checksums by embedded version numbers, if you would trust those.
That would require e.g. an editor that always increments the version number automatically.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text (not TextBoxes), and PictureBoxes for pictures (not drawings).


modified on Friday, June 10, 2011 12:26 PM

AnswerRe: How to determine if two C# exe come from the same source Pin
#realJSOP14-Jan-09 9:46
professional#realJSOP14-Jan-09 9:46 
GeneralRe: How to determine if two C# exe come from the same source Pin
Scott Dorman14-Jan-09 9:56
professionalScott Dorman14-Jan-09 9:56 
GeneralRe: How to determine if two C# exe come from the same source Pin
cwster14-Jan-09 10:00
cwster14-Jan-09 10:00 
GeneralRe: How to determine if two C# exe come from the same source Pin
Scott Dorman14-Jan-09 10:02
professionalScott Dorman14-Jan-09 10:02 
AnswerRe: How to determine if two C# exe come from the same source Pin
User 665814-Jan-09 10:04
User 665814-Jan-09 10:04 
AnswerRe: How to determine if two C# exe come from the same source [modified] Pin
Luc Pattyn14-Jan-09 10:12
sitebuilderLuc Pattyn14-Jan-09 10:12 
GeneralRe: How to determine if two C# exe come from the same source Pin
PIEBALDconsult14-Jan-09 16:57
mvePIEBALDconsult14-Jan-09 16:57 
AnswerRe: How to determine if two C# exe come from the same source Pin
Daniel Grunwald14-Jan-09 12:48
Daniel Grunwald14-Jan-09 12:48 
AnswerRe: How to determine if two C# exe come from the same source Pin
Henry Minute14-Jan-09 13:31
Henry Minute14-Jan-09 13:31 
Questionmultiple icons in exe with alpha Pin
Xmen Real 14-Jan-09 5:59
professional Xmen Real 14-Jan-09 5:59 
QuestionProblem transferring file with FTP using Socket Pin
Member 321680814-Jan-09 5:50
Member 321680814-Jan-09 5:50 
AnswerRe: Problem transferring file with FTP using Socket Pin
Mark Salsbery14-Jan-09 13:35
Mark Salsbery14-Jan-09 13:35 
GeneralRe: Problem transferring file with FTP using Socket Pin
Member 321680815-Jan-09 2:41
Member 321680815-Jan-09 2:41 
AnswerRe: Problem transferring file with FTP using Socket Pin
Bharat Jain29-Jan-09 19:47
Bharat Jain29-Jan-09 19:47 
QuestionSend UDP string via proxy [modified] Pin
s.sala14-Jan-09 4:05
s.sala14-Jan-09 4:05 
AnswerRe: Send UDP string via proxy Pin
Bharat Jain14-Jan-09 4:27
Bharat Jain14-Jan-09 4:27 
GeneralRe: Send UDP string via proxy Pin
s.sala14-Jan-09 4:59
s.sala14-Jan-09 4:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.