Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: VBS to EXE

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,29193
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: VBS to EXE
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2] 3   next >   >>
Login
Message << Older Topic   Newer Topic >>
 RE: VBS to EXE - 6/5/2007 6:47:50 PM   
  everstrike

 

Posts: 12
Score: 0
Joined: 4/12/2007
Status: offline
quote:

ORIGINAL: instok

Two ways to know where the script is running, inside the executable's process, or in CScript.exe/WScript.exe's process:

1. write a line that certianlly produces error, make the exe and run it, the error message box will tell you where the source file is and which line has caused an error.

2. Write a loop that will not end, make the exe and run it, look at "Task list" to see if there is a CScript/WScript process.


You can test ExeScript 3.0 with "Execution Type=Compile". No source file and no CScript/WScript process.

Richard Davids,
VBS to EXE convertion tool

(in reply to instok)
 
 
Post #: 21
 
 RE: VBS to EXE - 6/25/2007 5:16:23 AM   
  RobertParker

 

Posts: 24
Score: 2
Joined: 6/8/2007
Status: offline
Found a command-line freeware tool that does this.  I'm pretty sure it just makes it a self extracting exe, but at least it is freeware.


http://www.soft32.com/download_194850.html

(in reply to everstrike)
 
 
Post #: 22
 
 RE: VBS to EXE - 6/25/2007 4:26:59 PM   
  tokiwoki

 

Posts: 8
Score: 0
Joined: 3/3/2007
Status: offline
Yes, and despite the review on that link I've used it lots of times without any issues.

(in reply to RobertParker)
 
 
Post #: 23
 
 RE: VBS to EXE - 6/26/2007 1:43:23 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
If the script is running on an NTFS system and you control the command that is used to run it (i.e. a login script) then you can look at embedding the script in an alternate data stream as well. Then the user would need to know first that the script is in an alternate data stream and they would need to know how to find it.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to tokiwoki)
 
 
Post #: 24
 
 RE: VBS to EXE - 6/27/2007 2:28:18 AM   
  ekrengel

 

Posts: 28
Score: 0
Joined: 5/11/2007
Status: offline
Winrar makes self extracting exe's...and thats free.  

(in reply to ebgreen)
 
 
Post #: 25
 
 RE: VBS to EXE - 6/27/2007 9:27:25 AM   
  Fredledingue


Posts: 333
Score: 0
Joined: 5/9/2005
From:
Status: offline
One way to test such software more pragmaticaly:

Create a vbs script  with nearly nothing in it, but a sleep of a 100 milliseconds.
Compile it into an exe.
Create a script with a loop which launch via shell, the exe file one thousand times and, with a timer, count the time it took to do so.
Repeat the operation with the vbs file and see which one is faster.

If the exe file launched faster, then it's probably a true executable. If it's an extractible, it should take longer.

_____________________________

Fred

(in reply to ekrengel)
 
 
Post #: 26
 
 RE: VBS to EXE - 6/28/2007 3:00:42 AM   
  everstrike

 

Posts: 12
Score: 0
Joined: 4/12/2007
Status: offline
Did you already test ExeScript 3.0 with "Execution Type=Compile"?
If you find another program that can really compile VBS to EXE - please let me know.

(in reply to Fredledingue)
 
 
Post #: 27
 
 RE: VBS to EXE - 6/28/2007 11:32:04 AM   
  dm_4ever


Posts: 2366
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
I'm currently playing with a beta version of PrimalScript 2007 which will let you package HTA's, PowerShell, and VBScripts into .exe's.  One main difference is that you will be able to compile your .vbs files and it will use it's own engine so that it runs in memory and of course it lets you specify alternate credentials and all the other stuff you can currently do.  

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to everstrike)
 
 
Post #: 28
 
 RE: VBS to EXE - 6/29/2007 1:02:23 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
This of course all brings us back to the question of the difference between a programming vs. scripting language. To be honest with you, in my opinion by the time that you get to the point that you are compiling your script and granting credentials, etc. you might as well have just written the thing in a regular progrmmaing language.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to dm_4ever)
 
 
Post #: 29
 
 RE: VBS to EXE - 6/29/2007 9:33:53 AM   
  Fredledingue


Posts: 333
Score: 0
Joined: 5/9/2005
From:
Status: offline
The problem is that I don't know any "regular" language and the little I'v seen didn't encourage me to learn them.
In my personal case, there is no use of "packaging" a scrpt in a self-exctractible.

Creating a fake executable, just for the sake of seeing another extention type in Explorer is not what we are looking for.

What we want here is a vbs to -at least- vb translator or to more modern languages.
A program which would create a source code out of a vbs file and that would let us modify this source code if we need to.



_____________________________

Fred

(in reply to ebgreen)
 
 
Post #: 30
 
 RE: VBS to EXE - 7/2/2007 6:54:47 PM   
  whatwhatkit

 

Posts: 8
Score: 0
Joined: 7/2/2007
Status: offline
http://renegadetech.blogspot.com/2006/07/how-to-convert-bat-file-or-vbs-file.html

it is another "freeware" in windows XP

(in reply to Fredledingue)
 
 
Post #: 31
 
 RE: VBS to EXE - 7/4/2007 2:52:01 AM   
  Parabellum


Posts: 222
Score: 0
Joined: 11/12/2006
From: UK
Status: offline
I spent a long time looking intro this subject.. and have posted many times relating to this subject before... to summerise... best option I found was Exescript 3. Firstly it encrypts the file contents... and it also executes the packaged EXE in memory, instead of writing to a temp folder, so making it pretty near impossible to read the contents.....
It would in fact probably be easier to decompile an executable!

(in reply to whatwhatkit)
 
 
Post #: 32
 
 RE: VBS to EXE - 3/8/2008 11:06:02 AM   
  Sa6ry

 

Posts: 3
Score: 0
Joined: 3/8/2008
Status: offline
Check out this online free vbs 2 exe converter

http://www.vbs2exe.com/

The exe produced is a true EXE !

text from the website:

VBS to EXE is a free online converter that doesn't only convert your vbs files into exe but it also:

1- Encrypt your vbs file source code using 128 bit key.
2- Allows you to call win32 API
3- If you have troubles with windows vista especially when UAC is enabled then you may give VBS to EXE a try.
4- No need for wscript.exe to run your vbs anymore.
5- Your script is never saved to the hard disk like some others converters. it is a TRUE exe not an extractor.

Regards,
Sa6ry

(in reply to Parabellum)
 
 
Post #: 33
 
 RE: VBS to EXE - 3/8/2008 12:15:32 PM   
  TNO


Posts: 1061
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
I must admit I'm a bit paranoid of this program, though maybe unjustifiably so. I played with some basic things and I must say first off, I hope no one minds the size of this...

MsgBox "Hello World!" --> 188kb exe.

If you plan to deploy a script using this keep that in mind. Also under windows Vista there is a good chance you will still receive warning dialogs (I do, and UAC is disabled)

If you have a small script of only a few hundred lines I would suggest not using this. By the time the .exe loads you could have run the vbs a few times already.

I purposely invoked an error and the error dialog displayed the title XNeat on it. I don't know anything about this application, but it appears to be some type of generic utility. Anyone with more info on this would be welcomed.

Also, you're resulting .exe will require the .NET framework to be installed as well it seems so that's something to note if you handle older windows systems. (I ran the program through a Hex editor since the website isn't very clear behind the .exe's creation).

You're vbscript is not necessarily going to be compatible with this "compiler"/wrapper. For example: WScript.Echo will fail. Your usual global objects are not available so be sure to look over your script beforehand.

All things considering, if your paranoid about an individual script and want it protected from prying eyes, go for it. Personally I dont see this as an elegant solution, and can often be more trouble than its worth. Good effort though by the author I guess.

Edit: I don't know why its being referred to as a True .exe It looks to be as much of a wrapper as the other programs being offered.

< Message edited by TNO -- 3/8/2008 12:16:54 PM >


_____________________________

Consolidated Script Component: The Acid Test

A universe of complexity...

(in reply to Sa6ry)
 
 
Post #: 34
 
 RE: VBS to EXE - 3/8/2008 9:34:23 PM   
  Sa6ry

 

Posts: 3
Score: 0
Joined: 3/8/2008
Status: offline
Hello TNO

MsgBox "Hello World!" gives me 100bk exe and after compressing it using upx . the result is 43kb


The result exe doesn't require .Net to run.

(in reply to TNO)
 
 
Post #: 35
 
 RE: VBS to EXE - 3/9/2008 6:03:32 AM   
  TNO


Posts: 1061
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
At any rate, from 21 bytes to 43kb is still pretty significant. But I assume that's without just the initial overhead of the run time, and the size will go down from there to a more linear growth.

Sa6ry, I found your website and have wandered through it for a few minutes, since your website is brand new I couldn't find alot of the information I wanted to. Hopefully when you finish your documentation page it will clarify some things. Especially the current limits of this beyond core vbscript functionality.

_____________________________

Consolidated Script Component: The Acid Test

A universe of complexity...

(in reply to Sa6ry)
 
 
Post #: 36
 
 RE: VBS to EXE - 3/9/2008 7:08:32 AM   
  Sa6ry

 

Posts: 3
Score: 0
Joined: 3/8/2008
Status: offline
Thanks TNO,

you are right TNO, 21bytes to 43kb is significant but putting in mind that wscript.exe is 112kb. 43kb (100kb non compressed) makes sense especially vbs2exe has extra features like calliing Win32 API .etc

Actually vbs2exe.com comes out after working on xNeat ( which is a tool that allows you to script the windows using VBScript).

I am planing in adding support to js. hta , html ..etc ( they are already supported , i just need to export them )

Though i am a system programmer and into low level languages like win32 assembly & c++ , but when it comes to GUI c# & c++ and all other languages sucks.

That is why i try to do the CORE using win32 and C++. the scripting and GUI are HTML & JScript & VBScript

you may give xNeat @ www.xneat.com a look . the gui of this application is totally written using HTML & JScript & VBScript. and most of the features are done using VBScript.

Thanks TNO, for taking the time to review my website, hope you like it more in the future :) there is a lot to be done infact.

Regards,
Sa6ry

(in reply to TNO)
 
 
Post #: 37
 
 RE: VBS to EXE - 4/14/2008 4:39:32 AM   
  hww

 

Posts: 11
Score: 0
Joined: 9/27/2007
Status: offline
interesting

(in reply to jr393)
 
 
Post #: 38
 
 RE: VBS to EXE - 4/16/2008 10:45:40 AM   
  carmando

 

Posts: 4
Score: 0
Joined: 10/27/2006
Status: offline
There is another Free alternative that will create a self extracting auto execute file.  This one comes with XP from Microsoft.

IExpress.exe  I have used it a few times.

http://www.microsoft.com/technet/prodtechnol/ie/ieak/techinfo/deploy/60/en/iexpress.mspx?mfr=true

(in reply to everstrike)
 
 
Post #: 39
 
 RE: VBS to EXE - 5/3/2008 12:20:57 AM   
  Abyssmedia

 

Posts: 3
Score: 0
Joined: 10/30/2007
Status: offline
ScriptCryptor from http://www.abyssmedia.com/scriptcryptor/index.shtml doesn't create temporary files and doesn't work as SFX archive.
It create native EXE with built-in WScript support and doesn't need any runtime libraryes.

(in reply to ebgreen)
 
 
Post #: 40
 
 
Page:  <<   < prev  1 [2] 3   next >   >>
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: VBS to EXE Page: <<   < prev  1 [2] 3   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts