| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 25, 2003 3:57 am Post subject: question about a code idea |
|
|
hello all
I have search for this info but haven't found it yet....I have seen s/w that will let you only run it on one computer...when you first run it it makes a key then you have to send that key in to get other key.....can a vds program do this to? so it will only run on one computer and if you try to run it on other computer you need to get a differnt key?
hard to explain
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Mar 25, 2003 4:11 am Post subject: |
|
|
I think I know what you are talking about. The only way I can think to do
that is to get the drive serial number of that computer using @volinfo().
like this %%setial = @volinfo(c:,z). Then generate a key based on that. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Tue Mar 25, 2003 4:19 am Post subject: |
|
|
Another possibility would be to use the MAC address of the user's network card since those get replaced a lot less often (I've replaced my NIC only once as opposed to numerous hard drives). Or manipulate a combination of the two to create a machine key, have them send it to you and then manipulate that key to create a user key which you would send back to them. The weakness in that method is the need to have a way for the program to validate the user key you send back. In the end it always comes down to...
| Code: | IF %%good_key
GOTO continue
ELSE
GOTO close
END |
and that is easy to patch, even if creating a keygen is not. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 25, 2003 4:24 am Post subject: |
|
|
hummmm
volinfo...hummmm i thought they did it a diff way.....ahhhh i see now what you are getting at:
This function returns information about the specified volume.
Z - returns the hard disk serial number.
hummm so take that number and have then enter that number into a keygen...to make a key that will let it run...BUT the question is how to make vds check that vol key agaist then one you maded..... _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 25, 2003 4:25 am Post subject: |
|
|
Hortalonus - good idea BUT how to have vds read the mac address??? _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Mar 25, 2003 4:49 am Post subject: |
|
|
My basic idea of how to do this:
Your program would need to get the drive serial(should probably encrypt it a little), have them send you that serial, you would have a program to take their name and drive serial and create a serial number based on them.
Send them their serial and have them put in their info and the serial number.
The users program would save the name but check the drive serial each time the program is ran. If all info matches then the program runs, if not it tells them they need to get a new serial. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Tue Mar 25, 2003 4:54 am Post subject: |
|
|
Try this...
| Code: | OPTION FIELDSEP,":"
RUNH ipconfig.exe /all > c:\ipconfig.txt
LIST CREATE,1
LIST LOADFILE,1,c:\ipconfig.txt
IF @GREATER(@COUNT(1),0)
%i = 0
REPEAT
LIST SEEK,1,%i
PARSE "%%field;%%value",@ITEM(1)
IF @GREATER(@POS("Physical Address",%%field),0)
INFO MAC Address: %%value
END
%i = @SUCC(%i)
UNTIL @GREATER(@SUCC(%i),@COUNT(1))
ELSE
WARN There was an error getting your IP configuration!
END
:close
FILE DELETE,c:\ipconfig.txt
LIST CLOSE,1
EXIT
|
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Mar 25, 2003 4:55 am Post subject: |
|
|
Would that require a network card? If so it might not be the best way to go.
Some people still don't have em  _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Tue Mar 25, 2003 4:58 am Post subject: |
|
|
@Sheep: Not necessarily... even your standard dialup adapter has a MAC address. And hey, if Mac has one, I'd bet everyone has one!  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 25, 2003 5:00 am Post subject: |
|
|
SnarlingSheep - that is true...wow this is harder then i thought...
Hortalonus - are you saying a phone modem has a mac address??? _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Mar 25, 2003 5:01 am Post subject: |
|
|
Actaully, we are assuming they get this program off the internet in the first place and then send and receive info for their serial. So they should have some kind of connection. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 25, 2003 5:03 am Post subject: |
|
|
SnarlingSheep - good piont we are assuming that....hummmmm _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Mar 25, 2003 5:07 am Post subject: |
|
|
I believe any computer with internet access would have to have a MAC address. Could be wrong though. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Mar 25, 2003 5:11 am Post subject: |
|
|
but i was just thinking that if a user wants to run the program on a "bare" machine that don't have a phone modem or a network card...then using the mac address idea would cause a problem..... _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Mar 25, 2003 5:13 am Post subject: |
|
|
You could have your program use one or the other.
If MAC isn't available, use harddrive. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
|