Created
August 7, 2013 12:15
-
-
Save tiefenb/6173561 to your computer and use it in GitHub Desktop.
blippex spam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var async = require('async'); | |
var worker = async.queue(function(url, cb) { | |
var data = { | |
"url": url, | |
"time_spent": 199999, | |
"created_at": new Date().toGMTString() | |
}; | |
var r = request.post('https://api.blippex.org/add/', function(err, res) { | |
console.log(res.body); | |
cb(); | |
}); | |
var form = r.form(); | |
for(var key in data) { | |
if(data.hasOwnProperty(key)) { | |
form.append(key, data[key]); | |
} | |
} | |
}, 1); | |
setInterval(function() { | |
var nextreq = Math.random()*100000; | |
console.log('next request:', nextreq); | |
setTimeout(function() { | |
worker.push('http://iglo.de/'); | |
}, nextreq); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope sorry and I guess I am 9 years too late for the reply :-D