65.9K
CodeProject 正在变化。 阅读更多。
Home

Javascript 注入的极致体现!甚至未使用 Eval()!

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.90/5 (6投票s)

2011 年 5 月 15 日

CPOL
viewsIcon

21314

JS 注入

String.prototype.code = function(){ return (new Function('with(this) { return ' + this + '}' )).call({}); };
var s = 'alert("hello!");'
s.code();

© . All rights reserved.