 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Fran Guest
|
Posted: Sun Jan 24, 2010 10:04 pm Post subject: Idea / Concept for securely distributing timed demo scripts |
|
|
Just my random thoughts and ideas.. Please add comments and suggests.
When script is first run it calls a php page hosted on the internet, passing unique information about the PC the script is running on.
Possibly using bits from SW Copy Protection:
| Code: | PCdata = %COMPUTERNAME%%HOMEPATH%%USERNAME%%PROCESSOR_ARCHITECTURE%%PROCESSOR_IDENTIFIER%
PCdata = %PCdata%%PROCESSOR_LEVEL%%PROCESSOR_REVISION%%A_OSType%%A_OSVersion%%Language%
Fingerprint := XCBC(Hex(PCdata,StrLen(PCdata)), 0,0, 0,0,0,0, 1,1, 2,2)
Together = %User%%Email%%Fingerprint%
AuthData := XCBC(Hex(Together,StrLen(Together)), 0,0, k0,k1,k2,k3, l0,l1, m0,m1) |
Url the script checks for could be in this format:
http://ip_address/check_script.php?id=AuthData
Chech_Script.php checks for a db for the entry of variable ID, if it doesn't find a macth for this PC's ID, then add to DB with todays date and expiry date.
Next time script is run, same process happens but as ID is now in DB expiry date is checked.
If script is run and its now the expiry date, how do I pass that back to ahk script for action ???
If no internet connection when script is run, error is returned and application exits... or script checks for registration details as per SW Copy Protection...
random ?? possible ?? anyone care to try doing it ?
FRAN  |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Sun Jan 24, 2010 11:39 pm Post subject: |
|
|
My perspective is from the 'customer' viewpoint.
I prefer being asked for permission to access internet, not just access it.
When getting permssion and expiration, store permission locally.
If demo is used several times or after expiration contact 'permission'.
And inform your website how many times used.
There is also idea of using a email address to validate a user and assign them a allocation of 'runs'. |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 460
|
Posted: Mon Jan 25, 2010 12:12 am Post subject: |
|
|
Agreed. And also, if it is a program that is mainly/only used for internet stuff (downloader, streaming music, etc) the user should not have too much of a complaint for the app calling home, but if it is a prog that will never access the internet otherwise, the user might be upset that the prog HAS to phone home each time (especially if there is no connection available.)
That being said, this works. AHK stuff:
| Code: | FileDelete, reg.txt
URLDownloadToFile, http://localhost/test.php?authid=0123456789, reg.txt
FileRead, txt, reg.txt
MsgBox, %txt%
|
PHP stuff:
| Code: | <?php
$authid = $_GET["authid"];
#check if in db
if( $authid == "0123456789" )
{ echo "yay";
}
else
{ echo "nay";
}
?> |
A better way would be to use URLDownloadToVar. _________________
 |
|
| Back to top |
|
 |
Fran Guest
|
Posted: Mon Jan 25, 2010 7:40 am Post subject: |
|
|
Thank You for you comments.
Not to sure if this is something I could do - Anyone else fancy having a go ?
FRAN |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Jan 25, 2010 8:19 am Post subject: |
|
|
| Fran wrote: | | Not to sure if this is something I could do |
...good...
| Fran wrote: | | Anyone else fancy having a go ? |
...NO!...I will never understand why people go out & find Open Source/Freeware (AutoHotkey) & want to put DRM/copy protection on a script written in it...WHY???...if you want closed-source/DRM/copy protection...plz go find "closed-source scripting language number 45", pay them $9000 & have them add DRM/copy protection to it...AutoHotkey is freeware...be free!...
I think it is an abomination to Open Source/Freeware to even WANT to write some DRM crap in it... |
|
| Back to top |
|
 |
Fran Guest
|
Posted: Mon Jan 25, 2010 8:51 am Post subject: |
|
|
this software is available for us all to use.
BUT surely we have a right to protect our code
FRAN |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|