TechSupp Posted January 12, 2010 Posted January 12, 2010 Just sorted out a vbs to run a program that requires a password in the vbs (saves me having to make the users local admins while they are logged on ), so would like to convert it to an exe to make it safe, after a bit of googling I can find paid for ones and evaluation ones but does anyone know of a free one?
srochford Posted January 12, 2010 Posted January 12, 2010 You can encode the script so that it's not (easily) readable - Using Script Encoder
TechSupp Posted January 12, 2010 Author Posted January 12, 2010 Tried that but when I enclode it and then try and run it it gives me an error. Used it with the code as shown in the link: 'Copyright© 1998. XYZ Productions. All rights reserved. '**Start Encode** my bit here I get error line 1 character 1, Error Expected statement Output: 'Copyright© 1998. XYZ Productions. All rights reserved. '**Start Encode**#@~^BQIAAA==@#@&@#@&}wDkW Any ideas what I may be doing wrong? Script works fine before encoding.
TechSupp Posted January 12, 2010 Author Posted January 12, 2010 Yup, definately XP2 with all the updates (may be thats the problem). Still anyone know of a vbs to exe (free)?
LosOjos Posted January 12, 2010 Posted January 12, 2010 Do you mean you are using Service Pack 2 and haven't installed Service Pack 3? The reason I ask is that for some reason SP3 kills the Script Encoder: It should be noted that after installing windows XP SP3, the script encoder, screnc.exe, will not work. You will continue to get an error like "screnc.exe has encountered a problem and needs to close. We are sorry for the inconvenience." AppName: screnc.exe AppVer: 0.0.0.0 ModName: msvcrt.dll ModVer: 7.0.2600.5512 Offset: 00036fa3 This error will only occur when actually trying to encode a script, simply running screnc.exe will not cause the error. I don't see MS fixing this error any time soon, so if you need the script encoder, you will have to skip SP3, or have a VM handy that skips SP3.
ChrisH Posted January 12, 2010 Posted January 12, 2010 Could your script not be made into straight VB? These type of converters have been discussed here before and the general consensus was that these programs seem to just compress the thing and then run it from a temp file. I assume your script is using run somewhere or something? One option would be to use autoit as that has a native compiler and there seems to be some run as examples. http://www.autoitscript.com/forum/index.php?showtopic=77936 EDIT looks like the command was renamed with different functionality if you read that thread but you could investigate the rest.
TechSupp Posted January 12, 2010 Author Posted January 12, 2010 Yes, thats correct we have not installed SP3 here, just any updates that would be required using WSUS (service packs not included), anyway looks as though it may not work for me.
LosOjos Posted January 12, 2010 Posted January 12, 2010 If you want a hand converting it to an EXE, I'll take a look at it for you if you want? I've got VB.net running on my system, I'm sure it wouldn't take me long to convert your script to code and send you the compiled EXE
cookie_monster Posted January 12, 2010 Posted January 12, 2010 What about this? New Features Include: - Support for Executable Files, Batch Files, VB Script & Windows Installer Packages - RunAsUser can now compile your target files into the executable you create - Password is now encrypted with a 64bit Cipher to stop the discovery of the password - User Name and Password can be saved to the registry (encrypted), saving you having to type them again and again RunAsUser 4.1 free download. The function of this software is to allow Administrators to deploy applications that require elevated user rights to users who have restricted rights without having to issue Administrator Credentials to the user.
TechSupp Posted January 12, 2010 Author Posted January 12, 2010 Looks prommising, thanks...sites off line at the moment to download it, so will have a look when its back up and running.
cookie_monster Posted January 12, 2010 Posted January 12, 2010 Looks prommising, thanks...sites off line at the moment to download it, so will have a look when its back up and running. Typical. Here you go this is version 4.1 it seems to work ok. RunAS.zip - Windows Live
box_l Posted January 12, 2010 Posted January 12, 2010 this is what i use (see attached) it includes a little batch script to encode and rename the file. HTH BoXvbsencoder.rar 1
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