Security

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
lcrltd
Junior Coder
Posts: 35
Joined: Thu Nov 16, 2006 8:23 am

Security

Post by lcrltd » Wed Dec 05, 2007 8:31 am

At the moment any exe`s I compile I put in a simple routine to read the name of the computer, then use the CRYPT command to write to a text file.
So when the programme runs it checks to see if the line in the text file relates to the computers name , so that the exe can only be run on PC`s I want it too.

But this is open to abuse as anyone can re-name the PC , so can anyone think of a more secure way of only allowing compiled scripts to be run on specific PC`s. I thought about trying to read the Hard Drive serial number?

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Wed Dec 05, 2007 3:17 pm

I don't know of a way to read the HD serial number, maybe someone else has a solution. But I can show you how to read the partition serial number.

Code: Select all

let>RP_DISPLAYERROR=1
Let>RP_WAIT=1
Let>RP_WINDOWMODE=1

Run Program>cmd /c DIR *.ap > %TEMP_DIR%~HDSerial.txt
ReadFile>%TEMP_DIR%~HDSerial.txt,result
DeleteFile>%TEMP_DIR%~HDSerial.txt

MessageModal>result
I hope this was helpful.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts