diff options
author | makefu <github@syntax-fehler.de> | 2011-08-29 12:57:41 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-08-29 12:57:41 +0200 |
commit | 45491390c7e5b17c16b8f9a4c2db8b49ebc0f530 (patch) | |
tree | 6da5d09e3957305c939c45c59cbaf14e10ce6f66 /cholerab/knut/index.js | |
parent | cdbc8c537320e3e534694311516ac398ea501600 (diff) | |
parent | 3c0470524cd39f722d1e39247f8b0b68c418b231 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'cholerab/knut/index.js')
-rwxr-xr-x | cholerab/knut/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cholerab/knut/index.js b/cholerab/knut/index.js index 9c536006..b8951f1d 100755 --- a/cholerab/knut/index.js +++ b/cholerab/knut/index.js @@ -12,6 +12,16 @@ var spawn = require('child_process').spawn; var plugs = process.argv.slice(2); +if (plugs.length === 0) { + console.error('Error 1: You are made of stupid!' + + '\nPro-Tip: [32m' + + require('path').basename(process.argv[1]) + ' [31;1mPLUG[m' + + ' # PLUG ∈ {' + + require('fs').readdirSync(__dirname + '/plugs').join(',') + + '}^n, n ≥ 1'); + process.exit(23); +}; + http.createServer(function (req, res) { return slurp(req, function (data) { try { |