将.hta文件编译为.exe [英] Compiling .hta file to .exe

查看:847
本文介绍了将.hta文件编译为.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有很多应用程序要求声明为了能够做到这一点 - 但他们没有为这个应用程序工作 - 这是一个JavaScript和VB的混合物。



简单地说,(而且天真地)不要让人们看着/搞砸代码。任何建议或解决方案将不胜感激。编辑:当然,我明白,JavaScript和VB不是可编译的,因为它们是解释型语言。我只是在寻找一种真正隐藏源代码的方法。

解决方案

您可以通过简单地包装HTA来编译为exe到一个知道如何设置HTA上下文/窗口的可执行文件。

最简单的方法(听起来像ExeScript)是简单地提取HTA /资源,然后执行它们。理论上可以通过将数据注入到正在运行的IE环境中而不用临时文件来完成此任务,但是任务变得更加困难。内部JS可能会或可能不会被混淆,包装可能会或可能不会添加额外的模糊/加密层。 (PayMo,我确信还有其他人,使用包装的上下文方法来分发单个可运行的exe)。

如果保护知识产权是目标,则聘用一个好律师: - )

I have searched far and wide for a way to compile my .hta file (and resources) to a .exe file.

There are plenty of applications that claim to be able to do this - but they have not worked for this application - which is a mixture of javascript and VB.

Simply, (and naively,) I don't want people looking at / screwing with the code. Any suggestions or solutions would be greatly appreciated.

EDIT: Of course, I understand that javascript and VB are not "compilable" since they are interpreted languages. I am just looking for a way to truly hide the source.

解决方案

You can "compile to exe" by simply wrapping the HTA into an executable which knows how to setup the HTA context/window.

The most trivial approach (which sounds like ExeScript) is to simply extract the HTA/resources first and then execute them. One could theoretically do this without temporary files by injecting data into a running IE context, but the task becomes more difficult. The internal JS may or may not be obfuscated and the wrapper may or may not add an additional layer of obfuscation/"encryption". (PayMo, and I am sure there are others, uses a wrapped context approach to distribute a single runnable exe).

If protecting "intellectual property" is the goal, hire a good lawyer :-)

这篇关于将.hta文件编译为.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆