Created
March 23, 2017 22:45
-
-
Save jackbrown/30d70ad0f6bcbfd8cb84c53f85875d9f to your computer and use it in GitHub Desktop.
wifi battering ram
This file contains hidden or 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
'use strict'; | |
const http = require('http'); | |
let count = 0; | |
setInterval(() => { | |
http.get({ | |
host: 'neverssl.com' | |
}, function (response) { | |
let body; | |
response.on('data', function (d) { | |
body += d; | |
}); | |
response.on('end', function () { | |
count = count + 1; | |
console.log(`Loaded the site ${count} times`); | |
}); | |
}); | |
}, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment