<%@Language="JScript"%><% // This version of simple hidden attempt to clean up after itself by // resetting the src attribute of the script element. // Since this is done in 1 syncronous process // the URL specified by src does NOT get redownloaded // (regardless of any cache settings) // Instead this causes the same existing script text // to be re-executed. Ultimately causing an infinite loop. // !!Beware, running this code causes IE to Lock Up!! function WriteLine(s) { Response.Write(s + "\r\n"); } Response.ContentType = "application/x-javascript"; var guid = Request.QueryString.Item("pass"); var passes = Session.Contents("passes"); var pass = passes.selectSingleNode("//pass[@guid='" + guid + "']"); if(pass == null) { // This is what we'll consider to be the "Fake Code" Response.Write("//fake"); } else { passes.documentElement.removeChild(pass); // This is what we'll consider to be the "Real Code" WriteLine(" var s = wtf.src; "); WriteLine(" wtf.src = ''; "); WriteLine(" wtf.src = s; "); } %>