Here’s a way to get the window object in NS2 scripts for free.
The Goods
const funny_window = Function("return this")()
Cómo funciona
Bastante simple, para ser sincero. 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, también. Here’s a more archaic version:
const funny_window = []["filtrar"]["constructor"]("return this")(); /* [] = empty array ["filtrar"] = instance of Array.filter ["constructor"] = get the constructor of the Function ("return this") = build a function to return the window () = run the new function */
Eso es todo lo que estamos compartiendo hoy para este Quemador de bits guía. Esta guía fue originalmente creada y escrita por overestimate. En caso de que no actualicemos esta guía, puede encontrar la última actualización siguiendo este enlace.