Sign in to follow this  
Followers 0
Starstar

secure you Script

37 posts in this topic

#1 ·  Posted (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 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."

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!

You can have a look at Maybe this is what you are looking for.

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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."

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

If it wasn't possible then obfuscators wouldnt be needed.

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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. :D

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Gotemp,

Please feel free to give me a warning or some other crap

Why 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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#16 ·  Posted (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 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."

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0