Jump to content

Recommended Posts

Posted
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 :D ), 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?
Posted

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.

Posted

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.

Posted

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.

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

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.

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



×
×
  • Create New...