🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #255

Re: software protection

#255
From: Vladimir Stefanovic
Date: Sun, 26 Sep 2004 05:58
52 lines
2663 bytes
zhan wei ming wrote in message
> [...] Currently the protect mechanism is: when the user
> first run the program, it read the disk id [...]

Do you read the Volume disk id ( GetVolumeInformation() ) or
you are reading hardware hd serial number?

If you are using GetVolumeInformation() then there are many tools
to change the ID like 'volumeid.exe'. So this is no reliable at all.
Also when the user re-formats the disk your mechanism of licensing
is down.

If you want to learn how to read the hardware hd serial then look at
www.winsim.com/diskid32/diskid32.html

This is much more reliable but when the user changes the HD which is
common nowadays your mechanism of licensing is down again.

> Question is that I am afraid the program can be cracked. for example
> heard hat there is a tool to make the ID of two disks the same. then
> the protect machanism will be no use.

Yes, read above. Be sure that crackers will generally not dig of
what you are checking. It's much easier for them to find code
constructions like this...

if ( IsSerialNumberValidForThisMachine() == false )
   Terminate();

... and to reverse the logic ( false -> true ).


> Anyone knows a better way?

You can also check for Network card IDs. There are couple of articles
on Borland developers network of how to read this. Network cards
generaly never removes or replaces from machine so it's also a
solution.
The bad information is that I heared (but not checked) that there are
some
NIC cards (Chinesse made) whose NIC ID can be changed from code ;(

Hardlocks are the best solution among those two I mentioned.

There are also some other solutions which some companies can do for
you,
but that's another story.



Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <41565a41@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4156396e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,49c3dd80669ecd88
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.deployment
References: <4156396e@newsgroups.borland.com>
Subject: Re: software protection
Date: Sun, 26 Sep 2004 07:58:42 +0200
Lines: 55
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.185
Message-ID: <41565a41@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096178241 213.137.116.185 (25 Sep 2004 22:57:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail