Login | |
|
 |
Encode my script - 1/22/2007 4:43:03 AM
|
|
 |
|
| |
avipenina
Posts: 102
Score: 0
Joined: 4/24/2006
Status: offline
|
Hi, i've this script that change administrator local password, i run it through Machine GPO and it run good. now i need to Encode this script because users will be able to see the password. this is the script: Set WSHShell = CreateObject("WScript.Shell") WSHShell.Run "net user Administrator password" i download this program to Encode the script Script Encoder after i Encode the script i can't run it anymore,i get an error message Expected Statement. Why? and how i can Encode this script or any other script that can change the administrator local password when Machine boot up through GPO?
|
|
| |
|
|
|
 |
RE: Encode my script - 1/22/2007 5:03:21 AM
|
|
 |
|
| |
TNO
Posts: 1399
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
If you run this script remotely and through an administrator account, then why would it matter if its encoded or not? You could even have it delete itself after the fact.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: Encode my script - 1/22/2007 5:15:05 AM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
I've done a bit of looking into this area myself, and found a couple of solutions, windows includes a tool called IExpress (which can be run by typing iexpress in the run dialog) this will package the script into an executable, the problem is that anyone with a bit of nounce will realise you can use winRar to unpackage it, so then came the second solution. I found a program called "ExeScript", whcih seems to compile the scipt, and then decompile as it runs it. Works great, except you its not free (costs about $20) and can also only handle one file at a time, eg. one vbs file. (This is fine 90% of the time, unless your calling other scripts or executables from you main script) My solution was to use a combination. I compile the scripts using ExeScript, and then package all the files together using IEXPRESS, with user prompts disabled. I'm sure its not completely hack proof but definatley will deter the casual snooper or office smart a$$ who likes to think he's an uber hacker!!
|
|
| |
|
|
|
 |
RE: Encode my script - 1/22/2007 8:31:33 AM
|
|
 |
|
| |
Country73
Posts: 735
Score: 10
Status: offline
|
One more option for you; use AutoIT. You can either create the whole script with AutoIT, or 'wrap' your vbscript with AutoIT. AutoIT can create an EXE out of it, you then have the option to password protect your EXE so that even if one of your users has AutoIT they won't be able to open it up without the correct password.
|
|
| |
|
|
|
 |
RE: Encode my script - 1/22/2007 8:40:47 AM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
If the aim of your script is to cahnge the local admin password on the machines in your domain, there are easy ways of doing so, in fact many scripts allready exist for doing this exact task, remotely from your server, eliminating the need for logon scripts and so making it more secure.. there are postings on this site relating to this task, or infact.. http://users.pandora.be/mydotcom/program/vbs/modifypw.htm <-------This seems to be a good effort.. I often prefer to create my own scripts, even if one exists to do the same job... (how else do you learn?!) But my point is... there are better ways of acheiving this... check out some existing code, and make your own version if you wish... Or I might have just gone completely off point... and this may not be what your trying to acheive anyway :)
< Message edited by Parabellum -- 1/22/2007 8:42:01 AM >
|
|
| |
|
|
|
 |
RE: Encode my script - 1/22/2007 8:46:17 AM
|
|
 |
|
| |
Parabellum
Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
|
Liking the AutoIT program by the way Country73 feel gutted now though that i payed for ExeScript :S it's sh!te compared to yours
|
|
| |
|
|
|
|
|