迷你组合套件不运行(EVAL)JavaScript的code组合、套件、EVAL、JavaScript

2023-09-10 17:55:17 作者:故桥畔七月七.

我使用的迷你组合套件(http://www.scriptiny.com/2009/05/javascript-popup-box/)为我的弹出操作。

虽然,当我在弹出的加载页面,并在它的脚本标记,这是行不通的。

Anyidea我怎么才能解决这个问题?

例如

 <脚本>
  警报(世界你好);
< / SCRIPT>
 

解决方案

迷你组合套件使用现有的DOM元素的innerHTML属性插入Ajax请求的结果。这就是为什么有不执行的脚本标签。请仔细阅读以下主题可脚本插入的innerHTML?并修改脚本相应地。

例如,这样的..插在tinybox.js 的eval(C); b.innerHTML = C; 部分。或者,你可以按照上面所给出的链接其他建议。

网洛者反爬练习平台第一题 JS 混淆加密,反 Hook 操作

I am using Tinybox (http://www.scriptiny.com/2009/05/javascript-popup-box/) for my popup operations.

Although, when I load a page in the popup and have a script tag in it, it does not work.

Anyidea how I can fix this ?

e.g

<script>
  alert('hello world');
</script>

解决方案

Tinybox uses innerHTML property of the existing DOM element to insert the result of the ajax request. That is why the script tags are not executed. Read carefully the following topic Can scripts be inserted with innerHTML? and modify the script correspondingly.

For example, like this.. insert in the tinybox.js eval(c); after b.innerHTML=c; parts. Or you can follow other recommendations given by the link above.