Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
schmalle committed Nov 2, 2014
1 parent 234a698 commit 8403855
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 70 deletions.
159 changes: 91 additions & 68 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
Nodepot
=======

Version 0.32: 05.10.2014
Version 0.33: 02.11.2014

0.33 News:



Thanks to Angelo Dell'Aera and Andrea De Pasquale for testing.
Thanks for Lutz Wischmann and Markus Schroer for bug reporting


- not production ready !!! -

Expand All @@ -27,6 +33,7 @@ npm install emailjs --save
npm install twit
npm install string
npm install nodejs-hpfeeds
npm install urlencode --registry=http://r.cnpmjs.org

On a plain vanilla Debian system add the following

Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN sudo npm install string
RUN sudo npm install nodejs-hpfeeds
RUN sudo npm install put
RUN sudo npm install binary
RUN sudo npm install urlencode --registry=http://r.cnpmjs.org

EXPOSE 8888

Expand Down
11 changes: 11 additions & 0 deletions puppet/puppet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
# base box for vagrant: vagrant box add Ubuntu1404 https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vbox.box
#





#
#
# BROKEN for NOW (02.11.2014, will be fixed shortly)
#
#


$enhancers = [ "nodejs", "npm", "redis-server" ]

$npmEnhancers = ["moment", "twit", "redis", "crypto", "nodemailer", "emailjs"]
Expand Down
3 changes: 2 additions & 1 deletion reporter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var querystring = require('querystring');
var urlencode = require('urlencode');
var https = require('https');
var fs = require('fs');
var S = require('string');
Expand All @@ -18,7 +19,7 @@ function report(username, password, host, ip, time, attacktype, mode, alarmHost,
var stage3 = S(stage2).replaceAll('HOST', host).s
var stage4 = S(stage3).replaceAll('ATTACKER_IP', ip).s
var stage5 = S(stage4).replaceAll('TIME', time).s
var stage6 = S(stage5).replaceAll('ATTACKTYPE', querystring.stringify({query: attacktype}))
var stage6 = S(stage5).replaceAll('ATTACKTYPE', urlencode(attacktype)).s
var stage7 = S(stage6).replaceAll('MY_IP', config.my_ip).s

PostCode(stage7, mode, alarmHost, alarmURL, alarmPort);
Expand Down

0 comments on commit 8403855

Please sign in to comment.