Protect application against copy

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
PedroAlex
Posts: 234
Joined: Tue Feb 09, 2010 3:06 am

Protect application against copy

#1 Post by PedroAlex »

Hello.

how can I ensure that an application only works on a given pc.
In other words, I want to protect an application so that it can only be executed on that pc.
Has anyone done anything like this?
Any opinion on the correct way is welcome

Many thanks.
Pedro Alexandre

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Protect application against copy

#2 Post by skiman »

You can check on the MAC address.
Best regards,

Chris.
www.aboservice.be

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Protect application against copy

#3 Post by Victorio »

I have not this on my app, but one of application as I have work with this system :

1. when install program, this generate key file, with content info about PC, SID, hdd type, IP adress, mac adress, license key of windows and more other info
2. this file send to developer site, where this file was encrypted (crypt key know only developer),
3.file return to user and app read this file , decrypt, when file is correct , program runs.

I mean, this is old outdated system...

Or other software use test license "online" how it works I do not know, but when I want for example HDD in PC, I must call them to unblock license, and again activate with new hardware.

User avatar
PedroAlex
Posts: 234
Joined: Tue Feb 09, 2010 3:06 am

Re: Protect application against copy

#4 Post by PedroAlex »

It seems to me that the simplest and most effective way is get the serial number of the harddisk.
Do you know any way to get the hard disk serial number?
Pedro Alexandre

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Protect application against copy

#5 Post by Auge_Ohr »

PedroAlex wrote:Do you know any way to get the hard disk serial number?
use WMI Win32_DiskDrive
Attachments
Win32_DiskDrive.zip
pure Xbase++ Source
(1.49 KiB) Downloaded 1017 times
greetings by OHR
Jimmy

Koverhage
Posts: 151
Joined: Mon Feb 01, 2010 8:45 am

Re: Protect application against copy

#6 Post by Koverhage »

so you have the same problems as other applications.
If the harddisk changed, the app doesn't work.
Klaus

User avatar
PedroAlex
Posts: 234
Joined: Tue Feb 09, 2010 3:06 am

Re: Protect application against copy

#7 Post by PedroAlex »

Jimmy,
Thank you for your always great availability.
I Will try your sugested solution.

Klaus.
that's the idea.
I just find it strange, as a programming language that costs a fortune, not having low-level comands for these basic operations.
At times I tried to use Volserial(), but this command failure in disks cloning situations.
Pedro Alexandre

User avatar
unixkd
Posts: 575
Joined: Thu Feb 11, 2010 1:39 pm

Re: Protect application against copy

#8 Post by unixkd »

Hi

Xbase++ provides the means to access API and with WMI you can access a lot of windows entities effortlessly.

Joe

Post Reply