通过packer.js对java脚本进行混淆

发布于 2024-12-26 06:20:27 字数 306 浏览 2 评论 0原文

我通过 dean edward packer 混淆了我的脚本,当我的 html 包含框架集和框架时,输出不显示通过 Internet Explorer 可以正常使用,但在 Firefox 中也同样有效。

仅当我的 html 包含混淆的脚本时才会出现此问题。

嗨,

感谢您的回复。我确实尝试使用 JSLint 来检查 java 脚本中是否缺少分号,但找不到任何分号。如果我使用表而不是框架集,它工作正常,但我的要求是使用框架集。

I have obfuscated my scripts through dean edward packer and when my html contains frameset and frames the output is not displaying properly through Internet Explorer but the same works in Firefox.

This problem happens only when my html includes the obfuscated scripts.

hi,

Thanks for the response.I did try using JSLint to check for missing semicolons in java script but would not find any.And more if I use tables instead of frameset its working fine but my requirement is to use frameset.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只是在用心讲痛 2025-01-02 06:20:27

首先,如果您还没有这样做,请从 HTML 中删除脚本并将它们包含在单独包含的文件中(我们将其称为 script.js)。缩小器仅在纯 JavaScript 上效果最好。

其次,通过 jslint 运行 script.js 文件。它将帮助您发现明显的脚本问题和拼写错误(例如尾随逗号这可能会破坏 IE)

第三,使用 google 的 closure 编译器 进行缩小。它实际上会进行混淆,但只是非常简单的混淆,除非您遵循可用的指南 此处

First, if you haven't already, remove your scripts from the HTML and include them in a separately included file (let's call it script.js). Minifiers work best on pure javascript only.

Second, run your script.js file through jslint. It will help you find obvious script issues and typo's (such as trailing commas which can break IE)

Third, use google's closure compiler for minification. It will actually do obfuscation, but only very trivial obfuscation unless you follow the guidelines available here.

雨落□心尘 2025-01-02 06:20:27

您是否尝试过使用 http://code.google.com/p/minify/ ?我很欣赏它不会造成混淆,但同时似乎比其他最小化器更强大:)

Have you tried using http://code.google.com/p/minify/ ? I appreciate it doesn't do obfuscation but at the same time does seem to be more robust than other minimizers :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文