無料スクリプト配布のPHP.TO   PHPの実用的なtips PHPマニュアル MySQLマニュアル Apacheマニュアル PostgreSQLマニュアル マニュアル検索    

??

PHP????2???? ??????? ?

??????????? ?????????? ?????? ?????????? ??????????? ??????? ???

1 HTML?????

<form method="POST" action="attacktarget?username=badfoo&password=badfoo">
<input type="hidden" name="username" value="badfoo">
<input type="hidden" name="password" value="badfoo">
</form>

??PHP??????? ?PHP????????? ??????????? ??????PHP?? show_source(), highlight_string(), highlight_file() ??????? ?????????? ????????????? ?????????? ????????? ????????? ????????????? ???

2 ???

<form method="post" action="attacktarget?errors=Y&amp;showerrors=1&amp;debug=1">
<input type="hidden" name="errors" value="Y">
<input type="hidden" name="showerrors" value="1">
<input type="hidden" name="debug" value="1">
</form>

????????? ????????

??????PHP??? ???? .html ??(? )??????? ????PHP???????? ?????

?????????????? ???Web?????????? ???????????Web? ????????? ????????????? ??(???)???????? ??????????

?????PHP??Web? Web??????? ???????????? ??

?3?????? ????????2???? ??????????3?? PHP???????? ????????3 ???????

????PHP???? error_reporting()??????? ?????????? ????????? E_ALL ???????????????? ????????? ?????????????? error_reporting() 0 ??php.ini ? display_errors ???? ????????? ???? error_log ini ??????? log_errors ???????

3 E_ALL???

<?php
if ($username) {  // ???????
    
$good_login 1;
}
if (
$good_login == 1) { // ??????????
    
readfile ("/highly/sensitive/data/index.html");
}
?>



powered by SEO.CUG.NET