Starstar Posted December 10, 2012 Share Posted December 10, 2012 (edited) I Want to become such a script that can realize in witch system he present. when someone copy it and past it another computer. script must ask a serial key. can someone help me in this project. Edited December 10, 2012 by adnanbaloch Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
JohnOne Posted December 10, 2012 Share Posted December 10, 2012 (edited) Write a value to the registry when serial key is entered, check for value upon script start. Edited December 10, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
water Posted December 10, 2012 Share Posted December 10, 2012 Welcome to AutoIt and the forum!You can have a look at Maybe this is what you are looking for. Starstar 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Gotemp Posted December 10, 2012 Share Posted December 10, 2012 If you really want to secure your script i think you would be better re-writing it in a different language and making it hard to decompile. Though i will admit ive never really got the obfuscator to work but then ive never gone to release anything that needed securing specially with my noob like scripts only being personal use. Link to comment Share on other sites More sharing options...
Starstar Posted December 10, 2012 Author Share Posted December 10, 2012 thanks to all for help Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
orbs Posted December 10, 2012 Share Posted December 10, 2012 the simplest way - although not fullproof - is to check the macro @ComputerName, and compare it to hardcoded allowed computername, so if they are different, ask for a serial code. in case someone guesses that it's the computername, and they change their computername in order to bypass your script, you can throw in some more hardware-specific details, like MAC address, hard drive serial number, etc. @Gotemp, correct me if i'm wrong, but with AutoIt v3 decompiling is no longer possible? Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Gotemp Posted December 10, 2012 Share Posted December 10, 2012 If it wasn't possible then obfuscators wouldnt be needed. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 10, 2012 Moderators Share Posted December 10, 2012 orbs,correct me if i'm wrong, but with AutoIt v3 decompiling is no longer possible?There is no "offical" decompiler for AutoIt - and that is as far as discussion on the subject of decompiling is allowed to go. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JohnOne Posted December 10, 2012 Share Posted December 10, 2012 I don't know why threads like this always turn the way they do. This is a new member who just wants to add a serial to his project, that is very simple to do. I don't see why they have to turn into a "Interpreted language code is easy to decompile" thread. Yes those who have been around for a while know this, and the posts by people who explicitly want to protect from decompilation merit a different answer but I think my next project will be "101 ways to limit your code" That translates as " a couple of ways" Don't be phased adnanbaloch, you can do it easily. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Gotemp Posted December 10, 2012 Share Posted December 10, 2012 Title of the thread is "Secure your script" to me securing could mean anything, and yes the user does then talk about adding a serial number to his script, i mealy pointed out that autoit is easy to decompile compared to other languages which would result in that serial number being useless. John, i dont know why now but you seem to have some sort of grudge against people either that or your justa forum troll hence the 7k posts and i say this because this is the third time (4th if you count your bad code in the last thread) that you poked your nose in and said something useless or have accused someone of something. Like you accused me of sharing code with someone when oh yes you were completely wrong. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 10, 2012 Moderators Share Posted December 10, 2012 Gotemp,Please do not start flame wars in open forum. If you have a complaint about another member then either tell a Mod about it or deal with it via PM. For what it is worth, I think JohnOne had a valid point. And he is certainly not a "troll" in the sense you meant it - although for all I know he may well hide under bridges and scare goats. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JohnOne Posted December 10, 2012 Share Posted December 10, 2012 Gotemp, you have just got the wrong end of the stick. I take my shits and giggles where I can, and although I don't know what code you are referring to I know I can write wrong stuff, but that is mainly if I misinterpret what someone wants, but not always. try not to project and take things personally though, the OP here was looking for a way to require an end user to enter a serial, I just gave a pointer is all. Live long and prosper. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Gotemp Posted December 10, 2012 Share Posted December 10, 2012 Melba, i mean he's a troll as in continues to poke his nose in where its not needed nor required in and he he has done this on more than one occasion which resulted in me being blamed for something i had not done i quite frankly find this forum very unwelcoming with the mod and devs seemingly wanting to hide facts and truths from users. The user asked a question how to secure his script i pointed out that it can be decompiled quite easily with that the security added would be useless i really have NO idea why you lot seem to want to hide this fact? Is it one of them "if they dont know it wont hurt" kind of things? Anyway like i said i find this forum/community unwelcoming and quite frankly have had enough of it and will not be using it from now on i can see why its not thriving community with the way you treat people and hide facts here. Please feel free to give me a warning or some other crap because i wont be signing in again. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 10, 2012 Moderators Share Posted December 10, 2012 Gotemp,Please feel free to give me a warning or some other crapWhy would I do that? You are entitled to your opinion, even if we do not agree with it. I am sorry you feel the community is unwelcoming and that we "hide" things. We make no bones about that fact that AutoIt scripts can be decompiled - why else would we have a rule prohibiting discussion of this very thing? And as to your point about using another language - any language can be decompiled, it is just a question of the degree of difficulty. Anyway I hope you do decide to remain. However if you do, could you please use a little more punctuation in your posts - I find your "stream of consciousness" text quite hard to understand at times. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JohnOne Posted December 10, 2012 Share Posted December 10, 2012 (edited) For reference, here are two basic examples of requiring a serial for script Edited December 11, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Starstar Posted December 12, 2012 Author Share Posted December 12, 2012 (edited) thanks johnOne but johnOne i am seeking such a code that find the system MAC address(physical address of computer or hardware hash) and save it in a save place. when the script realized that he is not in his register system error immediately.Thanks for all. Edited December 12, 2012 by adnanbaloch Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
HeJake Posted December 12, 2012 Share Posted December 12, 2012 You mean HWID for example? #include <String.au3> $H = _HWID() MsgBox(64, "", "Your HWID is: " & $H, 3) If $H <> "Your HWID" Then MsgBox(64, "", "You are not allowed to use this tool", 3) Exit EndIf Func _HWID() $osdrive = StringLeft(@SystemDir, 5) $original = "0"& @CPUArch & @KBLayout & DriveGetSerial("C:\") & StringUpper(DriveGetType($osdrive)) & DriveSpaceTotal ($osdrive) $string2 = StringMid($original, Round(StringLen($original)/2), Round(StringLen($original)/2)) $string2_mod = _StringToHex(_StringReverse($string2)) $original = _StringEncrypt(1, $original, $string2_mod, 1) Return $original EndFunc Link to comment Share on other sites More sharing options...
JohnOne Posted December 12, 2012 Share Posted December 12, 2012 thanks johnOne but johnOne i am seeking such a code that find the system MAC address(physical address of computer or hardware hash) and save it in a save place. when the script realized that he is not in his register system error immediately.Thanks for all. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 12, 2012 Moderators Share Posted December 12, 2012 Just to throw my 2¢ into the discussion, if this is something you're looking to distribute I would highly suggest you take the time to learn how to (or pay a professional to appropriately) repackage the application for you. Using a product such as Admin Studio or Wix, you can easily set up a licensing scheme or create trial-ware. Once created in the engine, registering of the product locally or via a remote server, or disabling a piece of software that has gone beyond its trial period is all done for you in the background. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Chimaera Posted December 12, 2012 Share Posted December 12, 2012 Personally ive always found JohnOne and many others here very helpfull so i wouldnt be jumping on the troll bandwagon. In this instance yes he has a longer term perspective and knows this has been approached many times. There is plenty of examples around the forum to assist you. Good luck If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
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