| categories:writeups series:SECCON Quals 2014
SECCON CTF 2014 Online Qualifications – jspuzzle
The corrected js code is the following:
"use strict";
({"function" :function(){
this[ "null" ] = (new Function( "return" + "/*^_^*/" + "this" ))();
var pattern = "^[w]$";
var r = new RegExp( pattern );
this[ r[ "exec" ]( pattern ) ][ "alert" ]( 1 );
}})[ "Function"[ "toLowerCase" ]() ]();