Use the servervariables attribute of the request object to obtain the value of the environment variable. The syntax used is: request. servervariables (variable), "variable" indicates the name of the environment variable, such as the server host name
ASP
Directory page (dir.htm) surface modified from: myhyli web page (http://www.blueidea.com/user/myhyli)
--------------------User: haiwaPassword: 51windows.com
--------------------
When adding a script, you only need to set the name, category,
The uploaded image was a component-less upload developed by O & M elders. During the upload process, the image is saved to the specified folder, and the path is saved to the database field. The displayed image is displayed based on the path field in
1. Ms script encode
Basically, it's useless. A piece of JS can be cracked.
2. package it into a DLLA more feasible method is the example of DLL encapsulation Through VB, and there is no need to change a lot.CodeIt is easy to modify and call. The
Bind one domain name to the same space
Copy codeThe Code is as follows: CheckDomain
Sub CheckDomain ()
Dim sDomain
SDomain = Request. ServerVariables ("HTTP_HOST ")
If Instr (sDomain, "a.xxx.com")> 0 then Response. Redirect "/"
End Sub
%>
Bind two
This program can only convert the homepage to static! (For a page)
Upload the createhtml. asp file to the directory where your space is stored (index. asp ).Enter the URL and open createhtml. asp.If the conversion fails, you can change the name of
'Retrieve the first letter of each Chinese Character in the field data
Function getpychar (char)Tmp = 65536 + Asc (char)If (tmp> = 45217 And tmp Getpychar = ""ElseIf (tmp & gt; = 45253 And tmp Getpychar = "B"ElseIf (tmp & gt; = 47761 And tmp
A lot of people are depressed when they get a database with a dynamic network (ah, the Administrator's abnormal password makes our machine run completely different)
Now We Have Another Method !!!!! This is to use asp to record the plaintext
Copy codeThe Code is as follows: Dim objXML
Dim objRootElement
Dim strValue
Dim strInetURL
Dim strXML
Dim item
StrInetURL = "http://pf.inetsolution.com/inetactive2001/inetactive2001news.xml"
Dim HttpReq
Set HttpReq = server. CreateObject
1. fso. GetFile
Extract File objects
1. getfile. asp
Whichfile = Server. MapPath ("cnbruce.txt ")Set fso = CreateObject ("Scripting. FileSystemObject ")Set f1 = fso. CreateTextFile (whichfile, true)F1.Write ("This is a test. My Name is
This component is used to create one or more counters that track the number of visits to a webpage or website. You can create only one counter component, but this component can have more than one counter.
Once a counter is created, it continues
ASP is a service function provided by the server. It is highly concealed and hard to detect and kill because it is a vulnerability in upfile files of dvbbs recently, this poses a serious threat to website security. Therefore, the prevention and
After the IIS service is restarted on the server, it is found that the HTTP Error, great sweat, and IIS are displayed on all ASP pages. When the application process protection is set to low, the website asp program can run normally, however, when
Copy the following code and save it as c_validcode.asp and upload it to the function.
Copy codeThe Code is as follows:
'/////////////////////////////////////// ////////////////////////////////////////
'// Z-Blog
'// OPERATOR: Zhu Xi (zx. asd), sipo
Copy codeThe Code is as follows: '====================================
'Function Description: Remove HTML tags with regular expressions
'You cannot retain and other custom
'====================================
Function RemoveHTMLTag (fString)Dim
Compile a general asp anti-injection program and select the Blog from ph4studio
Write common asp injection prevention program with keywords
Source
SQL Injection has been played by so-called cainiao-level hackers. It is found that most of today's
Several Methods for ASP to call stored procedures with parameters are selected from hxfwsk blogs.
Keyword Stored Procedure
Source
Author: puppet
Several Methods for ASP to call stored procedures with Parameters
Recently, many users have asked
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