' Name: ASP Universal Collection function redundant version, to the high-quality version of the conscientious change
' Author: Liu Yong FA
' Date: 2007-6-23
Function Gethttppage (Path)
t = GetBody (Path)
Gethttppage = Bytestobstr (t, "GB2312")
End
Let me tell you how to use the Global.asa file.
What is a Global.asa file? It is actually an optional file where program writers can specify event scripts and declare objects with session and application scopes. The contents of this file are not
Dim act,iflogin,loginurl,loginacturl,logindata,fileurl,filename
Act=request. QueryString ("act")
if (act= "do") then
Iflogin=cint (Request. QueryString ("Iflogin"))
Loginacturl=request. Form ("Loginacturl")
Logindata=request. Form
Modify three components to achieve an ASP Trojan attack. The FileSystemObject component---General operation of the file. The Wscript.Shell component---can invoke the system kernel to run DOS commands. Shell.Application Components--You can call the
Copy Code code as follows:
A=request.totalbytes:if a Then b= "ADODB.stream": Set c=createobject (b): C.type=1:c.open:c.write Request.BinaryRead (a) : C.position=0:d=c.read:e=chrb (&CHRB): F=instrb (d,e): G=instrb (f+1,d,e): Set H=createobject
Copy Code code as follows:
' Aspshell to hide and modify the last modification time of a file
' Principle: Through the FSO can modify the properties of the file, such as set to read-only, hidden, system and so on; Attributes properties in FSO
First write in ASP file such as code
If you want to hide, add some if judgment statements, you can
and write a form locally.
Copy Code code as follows:
Set Lp=server.createobject ("ADODB.stream")
Lp.open
lp.type=2
lp.charset= "gb231
Just put it in the conn.asp.
' Shield attacks through address bar
Url=request.servervariables ("Query_string")
If InStr (URL, ";") >=1 Then
Url=replace (URL, ";", ";"): Response.Redirect ("?" & URL)
End If
' Masks are attacked by forms
For each
Description
1, this tool can bulk replace the site asp,.txt,php,aspx ... And so on, text-type characters
2, will replace.asp upload to the site root directory, run http://site domain name/replace.asp
3. For safety, please delete or rename it after
This class is highlighted according to EditPlus highlight
Copy Code code as follows:
Class Wyd_aspcodehighlight
Private RegEx
Public Keyword,objectcommand,strings,vbcode
Public
Example:
For example: Enter the field name: Username,password,email,telphone
Note: Different field names are separated by commas in English and do not support asterisks
Table name Enter the table name to query: such as: table1
Front desk Form page:
In some cases, you may want to cache the ASP.net page, but you need to update the selected section on the page based on each request. For example, you might want to cache a large portion of a page, but you need to dynamically update the time-related
Description
A, the following character database name forum, database server name www-2443d34e558\sql2005 (or 127.0.0.1)
b, view SQL database server Name: Object Explorer-> database-> right click on its own built database-> properties-> permissions
C,
Rnd function
DescribeReturns a random number.Grammarrnd[(number)]The number argument can be any valid numeric expression.
DescriptionThe RND function returns a value less than 1 but greater than or equal to 0. The value of number determines how
1. Compared with the older environment, it is recommended to use a second
Set Dbconnection=server.createobject ("ADODB. CONNECTION ")
DBPath = Server.MapPath ("Customer.mdb")
DbConnection. Open "Driver={microsoft Access driver (*.mdb)};d bq=" &
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