php代码审计中的重要函数总结

颓废 2019年5月19日09:36:03评论523 views字数 698阅读2分19秒阅读模式
摘要

escapeshellarg 以上由Styxz整理

SQL注入

 magic_quotes_gpc
addslashes
mysql_real_escape_string
intval
XSS

print
print_r
echo
printf
sprintf’
die
var_dump
var_export
文件包含

include
include_once
require
require_once
文件读取

file_get_contents
highlight_file
fopen
readfile
fread
fgets
fgetss
parse_ini_file
show_source
file
文件上传

move_upload_file
代码执行

eval
assert
preg_replace
call_user_func
call_user_func_array
array_map
命令执行

system
exec
shell_exec
passthru
pcntl_exec
popen
proc_open
变量覆盖

extract
parse_str
import_request_variables
$$
mysql报错注入

floor
updatexml
extracvalue
GeometryCollection
polygon
multipoint
multilinestring
multipolygon
linestring
exp
php安全编码

addslashes
mysql_real_escape_string
mysql_escape_string
str_replace
strpos
htmlspecialchars
strip_tags
防止命令注入

escapeshellcmd

escapeshellarg

以上由Styxz整理

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
颓废
  • 本文由 发表于 2019年5月19日09:36:03
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   php代码审计中的重要函数总结http://cn-sec.com/archives/68243.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息