Linux?????????????????
???????????? ???????[ 2013/4/18 13:24:35 ] ????????
?????????????????????????????????????????в??????????????′?????????????Linux?????????????÷????????????????????
???????Web Server????Nginx?????
????1?????????????????????????????????????????fpm?????????????????Ч????
????2?????????include???????????????????У?Nginx????????
????3??path_info?????????
??????nginx??????????????
if ($request_filename ~* (.*).php) {
set $php_url $1;
?? ??}
if (!-e $php_url.php) {
return 404;
??}
????4?????±???Web Server??????Server???
????5????????????????????????????????IP??????????
??????????????????????????д??
find -type f -name *.php -exec chmod 444 {} ;
find -type d -exec chmod 555 {} ;
??????????????????????????????
???????y??chmod????????????????chmod?????????????????????????
????????PHP????
???????php.ini?????????????Σ???????
disable_funcions = dl??eval??exec??passthru??system??popen??shell_exec??proc_open??
proc_terminate??curl_exec??curl_multi_exec??show_source??touch??
escapeshellcmd??escapeshellarg
???????MySQL????????????
???????mysql??????????????????root??????????????????????????????????Web????
?????塢???????????
grep -r –include=*.php ‘[^a-z]eval($_POST’ . > grep.txt
grep -r –include=*.php ‘file_put_contents(.*$_POST[.*]);’ . > grep.txt
?????????????д???????????????????????????????????????????????б???????????????????????????????????????????????????δ??????
?????????2?????????????
find -mtime -2 -type f -name *.php
????????????????????touch????????????????????????????????????touch??????
?????????????Linux????Web????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11