backdoor/win32.agent.cgg查杀办法

前几天中了backdoor/win32.agent.cgg木马。

杀毒后重新启动只剩下桌面背景,explorer无法启动。然后又进安全模式下还原系统。

找了好久终于找到好办法,杀完毒后不要立即重新启动,先把c:windowssystem32shdocvm32.dll拷贝出来,放到另外的文件夹,重新启动,进前安全模式,把shdocvm32.dll拷贝到c:windowssystem32下面

重新启动,ok,解决问题!

good luck!

access转sql server

access转sql server时,一般在access里面有autonumber的字段,比方说id,自动增加的字段,转成sql server后,一定要把相应的字段按照如下设置。

.net 登陆代码

    protected void Button1_Click(object sender, EventArgs e)
    {
        string myconnectionstring = System.Configuration.ConfigurationManager.AppSettings["connstr"];
        string mycommandstring = "SELECT * FROM who where who_name=" + "’" + TextBox1.Text + "’" + "and who_pwd = " + "’" + TextBox2.Text+ "’";
        SqlConnection myconnection = new SqlConnection(myconnectionstring);
     
        SqlCommand mycommand = new SqlCommand(mycommandstring, myconnection);
        myconnection.Open();
        SqlDataReader myreader = mycommand.ExecuteReader();
        if (myreader.Read())
        {
          Session["name"] = myreader["who_name"].ToString();
          Response.Redirect("postdoing.aspx");
        }
        else
        {
            Response.Write("<script>alert(‘用户名或密码不正确,请重新登陆’);</script>");
            Response.Redirect("login.aspx");
        }
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        TextBox1.Text = TextBox2.Text = "";
    }