This is my own problem, in a machine appeared Apache Httpd.exe high CPU and high memory and outgoing network to send large traffic packet, after the service provider and their efforts finally solved, to thank tuidc.com.
Own machine out of this
We only talk about Linux systems, but to prevent the method in any system is effective, let's first look at the operation
You can use this
The code is as follows
Copy Code
A more practical PHP graphics validation code generation class, call method is also very simple, the need for friends can refer to.
The code is as follows
Copy Code
Class imagecode{ Private $width;//verification
First Test whether the MAGIC_QUOTES_GPC is on, if it is, Array_map () to return the original escaped data, the following see with Stripslashes restore Addslashes escaped the data of the simple implementation code
The code is as follows
This article introduced about the use of PHP Ase64_encode and UrlEncode to the string for simple encryption, is also a more common method, the need for students to refer to this article Oh.
Base64_decodeDecodes the BASE64 encoded string.
Syntax:
For data security, prevent injections that need to filter $_get to get the string, at first I also wrote the filter function, after
To see a PHP tutorial comes with a filter function, so the addslashes recommended to everyone.An example of using
Import OS
Import Sys
Import re
Import time
def listdir (dirs,liston= ' 0 '):
Flog = open (OS.GETCWD () + "/check_php Tutorial _shell.log", "A +")
If not Os.path.isdir (dirs):
Print "Directory%s is not exist"% (dirs)
Return
Lists =
We just need to add in the PHP tutorial. ini
Disable_functions =phpinfo
PHP.ini introduced a function disable_functions, which is useful, it can be used to prohibit some functions. For example, add disable_functions = PassThru exec system Popen in
The MySQL tutorial _real_escape_string-escapes special characters in strings used in SQL statements, and takes into account the current character set of the connection.
Note, however, that the function does not escape% and _. In addition, it is
We have provided three functions not to filter some special characters, mainly using PHP to filter out the SQL sensitive string, well, let's look at the code below. Have a friend in need to take a look.
We have provided three functions not to filter
. MAGIC_QUOTES_GPC = Off injection attack
MAGIC_QUOTES_GPC = Off is a very insecure option in the PHP tutorial. The new version of PHP has changed the default value to ON. However, there are still quite a few options for the server to OFF. After all,
Due to the PHP tutorial and the MySQL tutorial itself, php+mysql injection is more difficult than the ASP tutorial, especially the construction of the sentence when the injection is a difficult point, this article is mainly to okphp BBS v1.3 Some
Super simple PHP picture statistics, this kind of statistical device I used to do with a TXT file, and now directly use the database to implement it. Let's take a look at the data structure.
CREATE TABLE ' Count ' (' id ' int (ten) is not NULL auto_
PHP to determine if EXE file is normal
Include "exeinfo.php";$pe = new Pe_viewer (' cmd.exe ');$pe->out ();?>
, usually the virus will shell, after the shell of the program its section name is no longer common. Text,. Data,. Rdata,. rsrc, etc.,
SQL Universal Anti-injection system This article provides this anti-SQL injection code is a PHP SQL double filter illegal characters of the function, he can be based on user-defined anti-SQL injection Oh, first filter some SQL commands, and then is
News from ESET, the new virus specifically infected with PHP and HTML files and their variants were recently discovered, I hope you phper attention, timely upgrade your anti-virus software.
Name: Php.alf
Virus type: Worm
Infection Length: 846
Let's build the injection statement.
In the input box, enter
a% and 1=2 Union select 1,username,3,4,5,6,7,8, password,10,11 from
alphaauthor# into the SQL statement.
SELECT * from alphadb where title like%a% and 1=2 Union Select1,username,3,4,5,6,7,
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