Login | |
|
 |
Re: hide/compile vbscript - 4/14/2005 1:36:36 PM
|
|
 |
|
| |
token
Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
|
Just a second thought, from whom do you want to hide the userId and password ? What does your code script primarily design to do ? Would the idea of creating a dedicated account for whatever purpose your script serves be a reasonable solutions and that the account ONLY has the necessary (and not over) permissions or privileges to do what it should do ? If what you want to do is to hide the userID and password from average users, you could perhaps scramble the userID and password with manipulated strings so that it is not that EASY to immediately spot what their original values are. Of course, this would be useless for people with VBS knowledge. For example, you could do something like the following. temp = "Kx,26aVb^kD@#@&B4YO2=zzSAhc\kk;CV(lkk^/^.bwOR1G:JYG2bmRCdagPrh(" password = mid(right(left(mid(temp,25,37),13),7),4,2) & chr(mid(temp,4,2)) password will be "k;#8594;" The idea is to constructe your userId and/or password in different places within the scripts so that it is NOT easy (not impossible, obviously) for average uers to immediately SEE what they are. You can even do that from within a subroutine and/or functions with various builtin functions like left, right, mid, asc, chr etc. With some careful design, it could be useful in some situations.
|
|
| |
|
|
|
 |
Re: hide/compile vbscript - 4/14/2005 11:51:31 PM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
It is never a good idea to put a username/password in a script. There is no built in way to reliably encrypt a vbs. MS has a script encoder, look at technet.com, but this is easily decoded. As Token says, you can use AutoIT which has the ability to compile and encrypt an AutoIT script. But that is another language to learn, which is not too difficult. I have created an AutoIT exe that basically called a vbs with elevated privlidges. But like I said, that is combining 2 different languages and will require 2 different files. Alternativly you can check out [url]www.adminscripteditor.com[/url]. This is a script editor which has the ability to compile vbscript files. I have not used the compile function so do not know how good/bad it is. Fixed url
|
|
| |
|
|
|
 |
Re: hide/compile vbscript - 4/15/2005 4:07:07 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
One problem I see with using tokens method is that you can still easily get the password. All you would need to do is throw up a msgbox and you got it. You might need to understand vbs or understand programming, but it can be done.
|
|
| |
|
|
|
 |
Re: hide/compile vbscript - 4/15/2005 5:40:50 AM
|
|
 |
|
| |
Snipah
Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
duh....
|
|
| |
|
|
|
 |
Re: hide/compile vbscript - 4/15/2005 7:15:51 AM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
Bah, that shows me for not using the url tags. Fixed in the post
|
|
| |
|
|
|
|
|