<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Tricks for getting a reference to window (rev 16)</title>
        <description>/*
* I will be updating this thread when I have time with the replies.. any mods fell free to help.
*/

// [b]all browsers[/b]
[quote]window;[/quote]
[quote]frames;[/quote]
[quote]self;[/quote]
[quote]top;[/quote]
[quote]parent;[/quote]
[quote]this;[/quote]
[quote]open().opener;[/quote]
[quote]open(&quot;&quot;,&quot;_self&quot;)[/quote]
[quote]
Date.constructor('return this')()
[/quote]
[quote]document.documentElement.ownerDocument.defaultView[/quote]
[quote]x=''.split,x(null)[/quote]
[quote]__proto__.__parent__[/quote]
[quote](function(){}).__proto__.__parent__[/quote]
[quote](function(){ return arguments.callee.constructor.__parent__; })()[/quote]
[quote](function(){ return arguments.callee.caller.arguments.callee.caller.arguments[0].view })();[/quote]
[quote]var win = null;var forEach = [].forEach;forEach(function(val, prop,thisp) {win = thisp;}, []);win[/quote]

// [b]ff only[/b]
[quote][].constructor.constructor.__parent__; // Function.__parent__[/quote]
[quote]content;[/quote]
[quote]_content;[/quote]
[quote]__parent__;[/quote]
[quote]document.defaultView;[/quote]
[quote]([]=[].sort)();[/quote]
[quote]([],[].concat)()[+[]];[/quote]
[quote]([]=[].reverse)();[/quote]
[quote]([],[].slice)()[0];[/quote]
[quote]([],[].filter)(function(x){x==window}); // this also works with sort[/quote]
[quote]([],[].forEach)(function(x){x==window}); // change forEach with: every, map, some[/quote]
[quote]constructor.prototype.__lookupGetter__(&quot;window&quot;)()[/quote]
[quote]#0=[top][0][/quote]
[quote]#0={_:top}._[/quote]

//[b]firefox only [other windows][/b]
[quote]window.constructor.prototype.__lookupGetter__(&quot;opener&quot;)();//get's a reference to opener even if setted to null[/quote]

// [b]FF, O9.5+, Chrome2, SF4 - not IE8 though[/b]
[quote](0,[].valueOf)()[/quote]
[quote](0,Date.valueOf)()[/quote]
[quote](0,{}.valueOf)()[/quote]
[quote]('',/\//.valueOf)()[/quote]
[quote]('',RegExp.valueOf)()[/quote]
[quote]('',crypto.valueOf)()[/quote]
[quote](0||Boolean.valueOf)()[/quote]
[quote](1&amp;&amp;isNaN.valueOf)()[/quote]
[quote](1?atob.valueOf:0)()[/quote]

// [b]Works on IE (is intended behaviour)[/b]
[quote]x={}.valueOf,x()[/quote]
[quote]document.body.setExpression(1,'x=window')[/quote]
[quote]document.parentWindow[/quote]</description>
        <link>http://sla.ckers.org/forum/read.php?24,28641,28641#msg-28641</link>
        <lastBuildDate>Thu, 20 Jun 2013 03:24:57 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,49125#msg-49125</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,49125#msg-49125</link>
            <description><![CDATA[RuntimeObject(&quot;w*&quot;)[&quot;window&quot;][&quot;alert&quot;](1); // IE<br />
<br />
http://d.hatena.ne.jp/st4rdust/20120518/1337319251]]></description>
            <dc:creator>Yosuke HASEGAWA</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 18 May 2012 01:27:34 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,36545#msg-36545</guid>
            <title>Re: Tricks for getting a reference to window</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,36545#msg-36545</link>
            <description><![CDATA[Good for breaking sandboxes too]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 21 Jun 2011 13:11:41 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,36538#msg-36538</guid>
            <title>Re: Tricks for getting a reference to window</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,36538#msg-36538</link>
            <description><![CDATA[I'm not sure what everyone else is using these tricks for, but I found it to be a great way to evaluate octal strings. I needed some new tricks because our old favorite trick &quot;[],[]['sort']()&quot; is not working in the lastest versions of FireFox, and I was also in a situation where comma was not allowed.<br />
<br />
<br />
So I grabbed some snippets of code from here and built a few code samples. Anything enclosed in '' can be replaced with it's octal equivalent.<br />
<br />
'\141\154\145\162\164' = 'alert'<br />
<br />
<br />
$['__parent__']['alert'](1) //Firebug Console in FF3.6 Only<br />
(0,[]['sort'])()['alert'](1) //FF3.6, Chrome, IE9<br />
1.['__parent__']['alert'](1) //FF3.6<br />
([],[]['sort'])()['alert'](1) //Chrome, FF3.6, IE9<br />
/_/['__parent__']['alert'](1) //FF3.6<br />
$['constructor']('alert(1)')()  //JQuery Chrome, IE8, IE9, FF4, FF3.6<br />
(0,[]['valueOf'])()['alert'](1) //Chrome, FF3.6, IE9<br />
(0,{}['valueOf'])()['alert'](1) //Chrome, FF3.6, IE9<br />
(0||$['valueOf'])()['alert'](1) //JQuery Chrome, IE9, FF3.6<br />
(1&amp;&amp;$['valueOf'])()['alert'](1) //JQuery Chrome, IE9, FF3.6<br />
(1?$['valueOf']:0)()['alert'](1) //Jquery Chrome, IE9<br />
[]['sort']['apply']()['alert'](1) //Chrome, FF3.6<br />
(0,/0/(/0/)['sort'])()['alert'](1) //Chrome, FF3.6<br />
('',/\//['valueOf'])()['alert'](1) //Chrome, IE9, FF3.6<br />
(1?['']['valueOf']:0)()['alert'](1) //Chrome, IE9<br />
''['big']['constructor']('alert(1)')() //FF4, FF3.6 IE8, IE9, Webkit<br />
[]['map']['constructor']('alert(1)')() //FF3.6, FF4, Chrome, IE9<br />
(1&amp;&amp;[]['valueOf'])()['alert'](1) //Chrome, IE9, FF3.6<br />
/_/['test']['constructor']('alert(1)')() //FF3.6, FF4, Chrome, IE8, IE9<br />
(0||['']['valueOf'])()['alert'](1) //FF3.6, IE9, Chrome<br />
(0.['valueOf'])['constructor']('alert(1)')() //FF3.6, FF4, IE8, IE9, Chrome<br />
1.['constructor']['constructor']('alert(1)')() //FF3.6, FF4, IE8, IE9, Chrome<br />
(0)['constructor']['constructor']('alert(1)')() //FF3.6, FF4, IE8, IE9, Chrome<br />
$='@mozilla.org/js/function';$::['alert'](1) //FF3.6, FF4]]></description>
            <dc:creator>superevr</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Mon, 20 Jun 2011 17:09:17 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35168#msg-35168</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35168#msg-35168</link>
            <description><![CDATA[@theharmonyguy<br />
<br />
x=''.split<br />
alert(typeof x()[0])]]></description>
            <dc:creator>LeverOne</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 23 Jul 2010 09:27:33 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35165#msg-35165</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35165#msg-35165</link>
            <description><![CDATA[@theharmonyguy<br />
<br />
Yeah there are some uncorrected mistakes but fixing them is boring maybe we'll get round to it]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 23 Jul 2010 09:07:24 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35161#msg-35161</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35161#msg-35161</link>
            <description><![CDATA[I was playing around with some of the tricks on this list and came across two issues...<br />
<br />
First, some of the ones under &quot;all browsers&quot; use __proto__ and __parent__. But wouldn't those exclude IE (and Opera)? Also, __proto__.__parent__ is undefined in Chrome.<br />
<br />
Second, we should perhaps distinguish between getting <b>a</b> window object and getting <b>the</b> window object of the current document. For instance, x=''.split,x(null) returns a window object, but x(null).location is undefined and x(null).eval() doesn't seem to work.<br />
<br />
I bring this up because I was trying to create some cross-browser non-alnum code and I couldn't seem to get a useful window object...]]></description>
            <dc:creator>theharmonyguy</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 23 Jul 2010 08:15:05 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35136#msg-35136</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35136#msg-35136</link>
            <description><![CDATA[It's almost as good as FF2<br />
<br />
&lt;?ø?&gt;.\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e::['\137\137\160\141\162\145\156\164\137\137']]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 20 Jul 2010 08:00:39 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35135#msg-35135</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35135#msg-35135</link>
            <description><![CDATA[Amazing stuff that is...<br />
<br />
<pre class="bbcode">
&lt;?ø?&gt;.\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e::\u005f\u005f\u0070\u0061\u0072\u0065\u006e\u0074\u005f\u005f
</pre>]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 20 Jul 2010 07:49:57 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35101#msg-35101</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35101#msg-35101</link>
            <description><![CDATA[function:: is the new window!!!!!!!!!!!!!!!!!!!!<br />
<br />
<br />
function::['alert'](1)<br />
<br />
//by me and mario :D]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 16 Jul 2010 05:23:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35087#msg-35087</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35087#msg-35087</link>
            <description><![CDATA[//sooooooooo sweeeeeeeeeeet<br />
&lt;&gt;&lt;/&gt;.function::__parent__<br />
<br />
//All these can be called ;)<br />
__count__,__defineGetter__,__lookupGetter__,__lookupSetter__,__parent__,__proto__,anchor,appendChild,attribute,attributes,big,blink,bold,charAt,charCodeAt,children,concat,constructor,contains,elements,fixed,fontcolor,fontsize,hasOwnProperty,indexOf,isPrototypeOf,italics,lastIndexOf,length,link,localName,localeCompare,match,name,namespace,normalize,parent,propertyIsEnumerable,quote,repeat,replace,reverse,search,slice,small,split,strike,sub,substr,substring,sup,text,toJSON,toLocaleLowerCase,toLocaleString,toLocaleUpperCase,toLowerCase,toSource,toString,toUpperCase,trim,trimLeft,trimRight,unwatch,valueOf,watch<br />
<br />
//oh yeah<br />
''.function::__parent__;<br />
[].function::__parent__;<br />
1..function::__parent__;]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Thu, 15 Jul 2010 12:25:11 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,35062#msg-35062</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,35062#msg-35062</link>
            <description><![CDATA[Yeah WTF IE:-<br />
document.Script]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 13 Jul 2010 07:22:38 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,34554#msg-34554</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,34554#msg-34554</link>
            <description><![CDATA[https://groups.google.com/group/google-caja-discuss/browse_thread/thread/903bb21887ed092e (Via Caja)<br />
<br />
&lt;canvas id=c&gt;&lt;/canvas&gt;<br />
&lt;script&gt;<br />
alert(document.getElementById('c').getContext('2d').canvas.offsetParent.__parent__.__parent__);<br />
&lt;/script&gt;]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Thu, 27 May 2010 08:43:46 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,33323#msg-33323</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,33323#msg-33323</link>
            <description><![CDATA[A lot of that list above doesn't seem to work any more.<br />
<br />
On a similar line as those sort() ones, since I am still failing to understand why it works...<br />
<br />
FF only:<br />
[].sort().call()<br />
[][&quot;sort&quot;].apply()]]></description>
            <dc:creator>SW</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 09 Feb 2010 05:23:47 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,33097#msg-33097</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,33097#msg-33097</link>
            <description><![CDATA[(1,Object(Array.prototype).sort)()]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 19 Jan 2010 05:34:02 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,32908#msg-32908</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,32908#msg-32908</link>
            <description><![CDATA[hehe IE only, no idea what RuntimeObject does though<br />
<br />
RuntimeObject().alert(/I rock/)]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 05 Jan 2010 10:47:41 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,32876#msg-32876</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,32876#msg-32876</link>
            <description><![CDATA[well for decimals you can do 1..__parent__  but I see your point heh :) cool!]]></description>
            <dc:creator>sirdarckcat</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Wed, 30 Dec 2009 22:00:10 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,32871#msg-32871</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,32871#msg-32871</link>
            <description><![CDATA[2,000,001 way to get window:-<br />
<br />
01.__parent__<br />
<br />
Why is that anything? Because try:-<br />
1.__parent__ <br />
<br />
It doesn't work :)<br />
<br />
forcing octal numbers allows us to use numbers with () and get properties]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Tue, 29 Dec 2009 14:54:44 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,30238#msg-30238</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,30238#msg-30238</link>
            <description><![CDATA[(1,/heh/(/heh/).sort)()]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Wed, 02 Sep 2009 07:19:23 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,30063#msg-30063</guid>
            <title>Re: Tricks for getting a reference to window (rev 16)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,30063#msg-30063</link>
            <description><![CDATA[constructor == window :)<br />
<br />
Actually not window but:-<br />
constructor.constructor.constructor(&quot;alert(1)&quot;)()<br />
<br />
Actually yeah window :)<br />
constructor.prototype.__lookupGetter__(&quot;top&quot;)()]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Mon, 24 Aug 2009 04:56:43 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29065#msg-29065</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29065#msg-29065</link>
            <description><![CDATA[Wow, that's nasty. Did you choose variablenames as a means of obfuscation? :)]]></description>
            <dc:creator>holiman</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 26 Jun 2009 05:04:35 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29064#msg-29064</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29064#msg-29064</link>
            <description><![CDATA[Here's a no-alnum no-parenthesis reference to window - quite nasty but almost twitterable :)<br />
<br />
<pre class="bbcode">[ö='__'][õ=/^/[Ô=[Ó=![Ò={}+ö]+Ò][Õ=!!Ò+ö]+Ò,Ò[Ø=-~[Ö=-~Ò],ø=Ø*Ø+Ö]+Ò[Ö]+Ô[Ö]+Ó[ò=Ö+Ø]+Õ[ó=-!Ö]+Õ[Ö]+Ô[ó]+Ò[ø]+Õ[ó]+Ò[Ö]+Õ[Ö]]+ö,ö+õ[ø*ò-Ö]+Ó[Ö]+Õ[Ö]+Õ[ò]+Ô[Ö]+Õ[ó]+ö]</pre> <b>166</b>]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Fri, 26 Jun 2009 02:35:32 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29049#msg-29049</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29049#msg-29049</link>
            <description><![CDATA[@.mario yeah, that's what I'm looking for! thanks]]></description>
            <dc:creator>thornmaker</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Thu, 25 Jun 2009 11:46:42 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29043#msg-29043</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29043#msg-29043</link>
            <description><![CDATA[You mean like []['__parent__']? All characters can be retrieved - although the p is no fun (constructor, RegExp..) - my first approach for the shortest alnum was using this way but failed miserably in size :)]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Thu, 25 Jun 2009 04:53:10 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29040#msg-29040</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29040#msg-29040</link>
            <description><![CDATA[i meant to say, non-alphanumeric and without parenthesis]]></description>
            <dc:creator>thornmaker</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Thu, 25 Jun 2009 01:25:36 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29039#msg-29039</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29039#msg-29039</link>
            <description><![CDATA[ASCII? \0x00 - \0x7F ?<br />
hahaha no way, you need at least {} or [] or something like that..]]></description>
            <dc:creator>sirdarckcat</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Wed, 24 Jun 2009 21:56:01 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,29035#msg-29035</guid>
            <title>Re: Tricks for getting a reference to window (rev 13)</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,29035#msg-29035</link>
            <description><![CDATA[is it possible to get a reference to window without using ascii chars AND without using parenthesis?]]></description>
            <dc:creator>thornmaker</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Wed, 24 Jun 2009 19:25:07 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,28970#msg-28970</guid>
            <title>Re: Tricks for getting a reference to window</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,28970#msg-28970</link>
            <description><![CDATA[valueOf generally returns the window:-<br />
<br />
(1,/a/.valueOf)().alert(1)<br />
(1,/a/.valueOf)(null).alert(1)<br />
(1,/a/.toString.valueOf)().alert(1)<br />
(1,/a/.toString.valueOf)(null).alert(1)<br />
(1,/a/.toString.valueOf)().constructor.constructor.constructor('alert(1)')()]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Mon, 22 Jun 2009 07:44:02 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,28669#msg-28669</guid>
            <title>Re: Tricks for getting a reference to window</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,28669#msg-28669</link>
            <description><![CDATA[document.documentElement.ownerDocument.defaultView<br />
x=''.split,x(null)<br />
__proto__.__parent__<br />
(function(){}).__proto__.__parent__<br />
(function(){ return arguments.callee.constructor.__parent__; })()<br />
(function(){ return arguments.callee.caller.arguments.callee.caller.arguments[0].view })();<br />
var win = null;var forEach = [].forEach;forEach(function(val, prop,thisp) {win = thisp;}, []);win<br />
<br />
At lot of these were from:-<br />
http://stuff.mit.edu/iap/2008/facebook/<br />
<br />
and either me or ma1]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Mon, 08 Jun 2009 17:41:25 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,28668#msg-28668</guid>
            <title>Re: Tricks for getting a reference to window</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,28668#msg-28668</link>
            <description><![CDATA[<blockquote class="bbcode"><div><small>Quote<br/></small><strong></strong><br/>
Date.constructor('return this')()</div></blockquote>]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Mon, 08 Jun 2009 17:04:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?24,28641,28656#msg-28656</guid>
            <title>Re: Tricks for getting a reference to window</title>
            <link>http://sla.ckers.org/forum/read.php?24,28641,28656#msg-28656</link>
            <description><![CDATA[Little bit lame and IE only:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br/></small><strong></strong><br/>document.body.setExpression(1,'x=window')</div></blockquote>]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Obfuscation</category>
            <pubDate>Mon, 08 Jun 2009 11:07:35 -0500</pubDate>
        </item>
    </channel>
</rss>
