Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Active Contributor
fateyo
Posts: 48
Registered: ‎03-06-2008
Message 1 of 10 (657 Views)

try protect lisp

657 Views, 9 Replies
03-06-2008 02:39 AM
Hello all,

i try to protect lisp not be copy by people again and again.

so i try to search different variable in each computer.

what i try to do is , make lisp to check local variable in each computer.

e.g.
use (getvar "_LINFO") to find hardware lock number
use _PKSER to find autocad serial number
use (getvar "Loginname") to find window Login name

but when users use copy version ....then it doesn't workT_T

Can you guys help me a fever.
is there any method in lisp or vlisp can help me find each compurters:
1. Mac address.
2. ip address.
3. computer Identification code in portable license utility.
or any other useful variable.

Thank You So Much!!!!!!
Distinguished Contributor
Tom Smith
Posts: 3,729
Registered: ‎12-17-2003
Message 2 of 10 (657 Views)

Re: try protect lisp

03-06-2008 04:49 AM in reply to: fateyo
This has been discussed many times. If you want to restrict a lisp to your company's office environment, then you need to check variables which relate to the office, not to the individual PC. Such as (getenv "userdomain"). Or you could use username or -pkser and compare it to a list of those that are allowed access.

Most casual thieves only try to copy one lisp. If you make sure that your files are mutually interdependent, they probably won't figure out which files are necessary to make that one file work. For instance, have a startup file which checks "something" and sets a global variable, and don't let any lisp run unless that variable is set.

None of this will work unless the lisp to be "protected" is compiled/encrypted. Use your imagination.
Active Contributor
fateyo
Posts: 48
Registered: ‎03-06-2008
Message 3 of 10 (657 Views)

Re: try protect lisp

03-06-2008 05:06 AM in reply to: fateyo
Thank you Tom,

i try to sell my lisp to china. As i know too many people using copy version of autocad and window, and somtimes they use ghost copy many many computer with same setting like: userdomain, username, autocad serial number, hardware lock number...of course included my lisp.......what i try to do is keep my lisp only can run on 1 computer. I make new lisp for every new computer by different variable like Mac address T_T.

Thank you for your Help. what you suggest is cool and work in normal company/world.
*Bill DeShawn
Message 4 of 10 (657 Views)

Re: try protect lisp

03-06-2008 06:37 AM in reply to: fateyo
How about having the lisp check the LOGINNAME system variable, so that it
only works for one person with that Window Login?
--
_________________________

Bill DeShawn
bdeshawn@nospamsterling.net
http://my.sterling.net/~bdeshawn


wrote in message news:5868129@discussion.autodesk.com...
Thank you Tom,

i try to sell my lisp to china. As i know too many people using copy version
of autocad and window, and somtimes they use ghost copy many many computer
with same setting like: userdomain, username, autocad serial number,
hardware lock number...of course included my lisp.......what i try to do is
keep my lisp only can run on 1 computer. I make new lisp for every new
computer by different variable like Mac address T_T.

Thank you for your Help. what you suggest is cool and work in normal
company/world.
Distinguished Contributor
docsaintly
Posts: 196
Registered: ‎12-06-2006
Message 5 of 10 (657 Views)

Re: try protect lisp

03-06-2008 06:41 AM in reply to: fateyo
Something else you could do is compile it into a FAS file and require the user to enter a serial number on the first run that it stores into the registry. And maybe have that serial number be related to some variable on the computer that the user can't change.

i.e. ABC-123-(last 4 of mac)-(logon name) or something.

Or, it wouldn't be too hard to compile a lisp per each person who buys it and just get the info and compile it to only work on their comp.
Active Contributor
fateyo
Posts: 48
Registered: ‎03-06-2008
Message 6 of 10 (657 Views)

Re: try protect lisp

03-06-2008 07:31 AM in reply to: fateyo
Thank You docsaintly,

can registry copy from 1 computer to another?
Or if they copy the whole harddisk by ghost to another one, will it work?
because in china they all using copy software.
to install new computer....ghost is good and fast.
they normally do that. TT

Thanks
Active Contributor
fateyo
Posts: 48
Registered: ‎03-06-2008
Message 7 of 10 (657 Views)

Re: try protect lisp

03-06-2008 07:42 AM in reply to: fateyo
Thank You Bill,

As i know some of them......all computer using same login name (adminsitrator).
because there are no AD "active directory" in their server.
or all computer not login by domain when working. they only working by workgroup.
they just save user and password when click on the server location.
Active Contributor
fateyo
Posts: 48
Registered: ‎03-06-2008
Message 8 of 10 (657 Views)

Re: try protect lisp

03-06-2008 07:54 AM in reply to: fateyo
docsaintly,

Can you tell me how to make first run then keep it stores into the registry please? I having compile lisp into a FAS before.
is it one of the function of FAS ? or i need to do it in lisp?

Thanks
Active Contributor
fateyo
Posts: 48
Registered: ‎03-06-2008
Message 9 of 10 (657 Views)

Re: try protect lisp

03-07-2008 01:16 AM in reply to: fateyo
Thank you for everybody's help!!!!!!

i got the solution.
i download doslib from www.mcneel.com
it has a function like
Command: (dos_serialno "d:") drive d: serial no.
"FC35E197"
Command: (dos_macaddress)
("00:15:58:4C:B7:2C")

by compile a lisp to vls per each computer.
before my lisp run, it check local computer's mac address or harddisk drive serial no.
then we can protect our lisp for 1 compuuter only.

Thanks again. Message was edited by: fateyo
New Member
mjmane
Posts: 1
Registered: ‎02-02-2013
Message 10 of 10 (516 Views)

Re: try protect lisp

02-02-2013 09:31 PM in reply to: fateyo

Hi I just want to ask how did u do it compiling the those doslib in your lisp to protect it.  Can you give me an idea or sample of vlx as I want to protect my lisp too.

 

Hope to hear from you.

 

Thanks!

ram

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.