原帖地址:https://www.52hb.com/thread-30916-1-1.html
另外,恒大,这个算不算是求破?
[C#] 纯文本查看 复制代码 private void pictureBox1_Click(object sender, EventArgs e)
{
try
{
new WebClient
{
Credentials = this.nc
}.DownloadFileAsync(new Uri(this.url + "US.exe"), "US.exe");
this.sName = this.txtUser.Text.Trim();
this.sPwd = this.txtPwd.Text.Trim();
if (this.sName == "" || this.sPwd == "")
{
BaseClass.Message("请输入账号和密码!", "警告");
}
else if (this.sName == "adlo" && this.sPwd == "hldzjzckkaicn")
{
if (DateTime.Now < Convert.ToDateTime("2017-01-01"))
{
FmCat fmCat = new FmCat();
fmCat.ShowDialog();
base.Close();
}
else
{
MessageBox.Show("禁止登录");
}
}
else
{
User_Info user = base.GetUser(this.sName, this.sPwd);
if (user != null)
{
if (user.Login_Count <= 0)
{
MessageBox.Show("剩余登录次数为0");
}
else
{
if (user.Status == 2)
{
DateTime last_Lagin = user.Last_Lagin;
int num = (int)DateTime.Now.Subtract(last_Lagin).TotalMinutes;
if (num < 720)
{
MessageBox.Show("该账号处于登录中");
return;
}
}
base.Hide();
FmCat fmCat = new FmCat();
base.UserName = user.User_Name;
BaseForm.pwd = user.User_Pwd;
IPHostEntry iPHostEntry = Dns.Resolve(Dns.GetHostName());
IPAddress iPAddress = iPHostEntry.AddressList[0];
string iP = FmLogin.GetIP();
string last_Ip = iPAddress.ToString() + "-" + iP;
string text = iP + "-" + DateTime.Now.ToString("yyMd h m");
user.Last_Ip = last_Ip;
user.BeginTime = DateTime.Now;
user.Last_Lagin = DateTime.Now;
user.Status = 2;
User_Info expr_262 = user;
string remark = expr_262.Remark;
expr_262.Remark = string.Concat(new string[]
{
remark,
text,
"-",
this.GetMacAddressByNetworkInformation(),
","
});
user.Login_Count--;
base.UpUser(user);
fmCat.ShowDialog();
base.Close();
}
}
else
{
BaseClass.Message("账号或密码错误!", "警告");
}
}
}
catch (Exception ex)
{
base.ShowException(ex);
}
}
然后,我仔细浏览了下,发现这里有这么一个东西,顿时乐了。
也就是说,这个软件默认还留了一个帐号密码,只要电脑本地日期在2017-1-1以前,就可以用这个帐号密码登录。
然后,我们就把这个2017-1-1给改掉,比如2099-1-1
或者说,我们也可以把那个登录的帐号和密码给改成自己喜欢的。
我这里修改了3处,但要注意,String类型数据修改一定要在左右加上"",不能去掉。
点这个OK确定。
打开我们保存之后的程序、
 
我被软件作者的智商感动得哭了。
另外,鉴于此人的求破行为,建议恒大给出一定的惩罚。
|