ABOUT LIMITING THE LISP FILE

hi,
I need help with something. I have several commands that I've developed. I convert them to .fas files and give them to users. But since there are some malicious intentions, I want to limit it to those with user and mac information that I set myself. I want to make my definitions and work with my .fas file conforming to these definitions. Is there anyone who can help?
Thanks in advance.

Comments

  • ALANH
    edited September 2022
    There is numerous ways to add security, disk id, IP address, (getenv "username"), CAD license number, ping a server and so on.
  • You can get stuff via winmgmts / WMI, i.e mac address, processor serial, disk serial

    example

    (defun wmiProcessorId (/ item meth1 meth2 s serx wmi)
    (vl-load-com)
    (setq WMI (vlax-create-object "WbemScripting.SWbemLocator")
    meth1 (VLAX-INVOKE WMI 'ConnectServer nil nil nil nil nil nil nil nil)
    meth2 (vlax-invoke meth1 'ExecQuery "select ProcessorId from Win32_Processor")
    s (vlax-for item meth2 (setq serx (list (vlax-get item 'ProcessorId))))
    )
    (vlax-release-object meth1)
    (vlax-release-object meth2)
    (vlax-release-object wmi)
    (car s)
    )