Sparrowlord Posted May 5, 2009 Posted May 5, 2009 Would this be a good way to identify a computer after an ip verification? I'm looking to only allow a certain computer on a network to use a script of mine, and was wondering if DriveGetSerial() returns a unique value based off the hard-drive in the computer.
GEOSoft Posted May 5, 2009 Posted May 5, 2009 It returns the Volume serial number George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Sparrowlord Posted May 5, 2009 Author Posted May 5, 2009 What would be the way to identify a computer then? Is there anything that I can check that would be unique?
xXUlTiMaTeSiNXx Posted May 5, 2009 Posted May 5, 2009 The ip address? thats uniqe. I'm new to AutoIT, please help me where you can.[size=10]Profanity is the one language that all programmers understand[/size]
Sparrowlord Posted May 5, 2009 Author Posted May 5, 2009 The ip address? thats uniqe.Yes, however the person I'm giving the script to has a brother with the same ip address. I'm trying to restrict it to one computer..
xXUlTiMaTeSiNXx Posted May 5, 2009 Posted May 5, 2009 @computername & @ipaddress1 or whatever the variable for ip adress is. I'm new to AutoIT, please help me where you can.[size=10]Profanity is the one language that all programmers understand[/size]
GEOSoft Posted May 5, 2009 Posted May 5, 2009 I use a combination of items DriveGetSerial() & @ComputerName & @IPAddress1 Remeber that @IPAddress will change if the net card is swapped. DriveGetSerial() is generally pretty safe to use although that serial can be changed with enough effort. It would be nice if we could get the UUID of the computer but a couple of us have looked for a method to do that with no success. Another method would be to Enum the reg values for hardware but that would change if any major hardware changes were made to the system George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
WideBoyDixon Posted May 5, 2009 Posted May 5, 2009 It would be nice if we could get the UUID of the computer but a couple of us have looked for a method to do that with no success.But this helps:http://www.autoitscript.com/forum/index.ph...st&p=678401WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center]
LurchMan Posted May 5, 2009 Posted May 5, 2009 you could just have the script do a FileInstall() and make a *.dat file with some random entries and bury it in the windows dir somewhere and make the script check for it everytime it starts...not fool proof but if they are scared of the windows dir like most common people are then it should work Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now