0.3.7 • Published 7 years ago

wrapeval v0.3.7

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

NO WARRANT WARNING

  • Use at your own risk !

wrapeval

  • wrap eval in sanbox;
  • suggest to compile function and use later for performance
require('wrapeval')(`
console.log(Math.random())
`,{ console })

escape/hack cases

(function(){return this}())
this.constructor.constructor("return process")()
(function(){return this.constructor.constructor("return process")()}())
delete constructor.constructor;delete constructor;constructor.constructor('return process')()
delete constructor;constructor.constructor('return process')()
delete constructor;(function(){return this.constructor.constructor("return process")()}())

ref

http://perfectionkills.com/global-eval-what-are-the-options/#how_eval_works
0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago