Here’s a way to get the window object in NS2 scripts for free.
The Goods
const funny_window = Function("return this")()
How it Works
꽤 간단하다, to be honest. When you create a new function using the constructor, it runs under the window context. By returning ‘this’, you end up getting a reference to the window. This bypasses RAM requirements as (I presume) the RAM check only works with the main window reference. You can do this with any method on any object, ~도. Here’s a more archaic version:
const funny_window = []["filter"]["constructor"]("return this")(); /* [] = empty array ["filter"] = instance of Array.filter ["constructor"] = get the constructor of the Function ("return this") = build a function to return the window () = run the new function */
이것이 오늘 우리가 공유하는 모든 것입니다. 비트버너 가이드. 이 가이드는 원래 작성자가 작성하고 작성했습니다. overestimate. 이 가이드를 업데이트하지 못한 경우, 다음을 수행하여 최신 업데이트를 찾을 수 있습니다. 링크.