summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-29 12:57:41 +0200
committermakefu <github@syntax-fehler.de>2011-08-29 12:57:41 +0200
commitbd947bc3ba4bdc17dc7e533cae2334675094765e (patch)
tree7597b7b0e82fa35bb7a81876330f17b213c724d0
parenta76ecf0205de261a05a6cee0e07325c6e4606455 (diff)
parentd7f11b1e46c379321070afb970475416fc883e4e (diff)
Merge branch 'master' of github.com:krebscode/painload
-rwxr-xr-xcholerab/knut/clients/cnot/index2
-rwxr-xr-xcholerab/knut/index.js10
2 files changed, 11 insertions, 1 deletions
diff --git a/cholerab/knut/clients/cnot/index b/cholerab/knut/clients/cnot/index
index f276dd25..fcbef73e 100755
--- a/cholerab/knut/clients/cnot/index
+++ b/cholerab/knut/clients/cnot/index
@@ -11,7 +11,7 @@ port=42101
params="$*"
-flags=-sS
+flags=${curl_flags--fsS}
if test "${verbose-no}" != no; then
flags="${flags+$flags }-v"
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: '
+ + require('path').basename(process.argv[1]) + ' PLUG'
+ + ' # PLUG ∈ {'
+ + require('fs').readdirSync(__dirname + '/plugs').join(',')
+ + '}^n, n ≥ 1');
+ process.exit(23);
+};
+
http.createServer(function (req, res) {
return slurp(req, function (data) {
try {