Skip to content

Instantly share code, notes, and snippets.

View domedfd's full-sized avatar

Domenico Delvalle domedfd

View GitHub Profile
@domedfd
domedfd / jspuzzle.js
Created May 23, 2018 14:13 — forked from volpino/jspuzzle.js
SECCON js puzzle
"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" ]() ]();
@domedfd
domedfd / jspuzzle.js
Created May 23, 2018 14:13 — forked from volpino/jspuzzle.js
SECCON js puzzle
"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" ]() ]();