Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

php °²È«Ä£Ê½µÄ²»×ã

PHPµÄsafe_modeÑ¡ÏîµÄÄ¿µÄÊÇΪÁ˽â¾ö±¾ÕÂËùÊöµÄijЩÎÊÌâ¡£
µ«ÊÇ£¬ÔÚPHP²ãÃæÉÏÈ¥½â¾öÕâÀàÎÊÌâ´Ó¼Ü¹¹ÉÏÀ´¿´ÊDz»ÕýÈ·µÄ£¬ÕýÈçPHPÊÖ²áËùÊö(http://php.net/features.safe-mode)¡£
µ±°²È«Ä£Ê½ÉúЧʱ£¬PHP»á¶ÔÕýÔÚÖ´ÐеĽű¾Ëù¶ÁÈ¡£¨»òËù²Ù×÷£©ÎļþµÄÊôÖ÷½øÐмì²é£¬ÒÔ±£Ö¤Óë¸Ã½Å±¾µÄÊôÖ÷ÊÇÏàͬµÄ¡£
ËäÈ»ÕâÑùȷʵ¿ÉÒÔ·À·¶±¾ÕÂÖеĺܶàÀý×Ó£¬µ«Ëü²»»áÓ°ÏìÆäËüÓïÑÔ±àдµÄ³ÌÐò¡£
ÀýÈ磬ʹÓÃBashдµÄCGI½Å±¾£º
#!/bin/bash
echo "Content-Type:text/plain"
echo ""
cat /home/victim/inc/db.inc
Bash½âÎöÆ÷»áÈ¥¹ØÐÄÉõÖÁ¼ì²éPHPÅäÖÃÎļþÖеĴò¿ª°²È«Ä£Ê½µÄÅäÖÃ×Ö·û´®Âð£¿
µ±È»²»»á¡£Í¬ÑùµÄ£¬¸Ã·þÎñÆ÷Ö§³ÖµÄÆäËüÓïÑÔ£¬ÈçPerl£¬PythonµÈ¶¼²»»áÈ¥¹ØÐÄÕâ¸ö¡£
±¾ÕÂÖеÄËùÓÐÀý×Ó¿ÉÒԺܼòµ¥µØ±»¸Ä±à³ÉÆäËü±à³ÌÓïÑÔ¡£
ÁíÒ»¸öµäÐ͵ÄÎÊÌâÊÇ°²È«Ä£Ê½²»»á¾Ü¾øÊôÓÚWEB·þÎñÆ÷ÎļþµÄ·ÃÎÊ¡£
ÕâÊÇÓÉÓÚÒ»¶Î½Å±¾¿ÉÒÔÓÃÓÚ½¨Á¢ÁíÒ»¶Î½Å±¾£¬¶øнű¾ÊÇÊôÓÚWEB·þÎñÆ÷µÄ£¬Òò´ËËü¿ÉÒÔ·ÃÎÊËùÓÐÊôÓÚWEB·þÎñÆ÷µÄÎļþ£º
<?php
$filename='file.php';
$script='<?php
header(\'Content-Type:text/plain\');
readfile($_GET[\'file\']);
?>';
file_put_contents($filename,$script);
?>
ÉÏÃæµÄ½Å±¾½¨Á¢ÁËÏÂÃæµÄÎļþ£º
<?php
header('Content-Type:text/plain');
readfile($_GET['file']);
?>
ÓÉÓÚ¸ÃÎļþÊÇÓÉWeb·þÎñÆ÷Ëù½¨Á¢µÄ£¬Òò´ËËüµÄÊôÖ÷ÊÇWeb·þÎñÆ÷£¨ApacheÒ»°ãÒÔnobodyÓû§ÔËÐУ©£º
$ls file.php
-rw-r--r-- 1 nobody nobody 72 May 21 12:34 file.php
Òò´Ë£¬Õâ¸ö½Å±¾¿ÉÒÔÈƹýºÜ¶à°²È«Ä£Ê½ËùÌṩµÄ°²È«´ëÊ©¡£
¼´Ê¹´ò¿ªÁË°²È«Ä£Ê½£¬¹¥»÷ÕßÒ²ÄÜÏÔʾһЩÐÅÏ¢Èç±£´æÔÚ/tmpĿ¼ÄڵĻỰÐÅÏ¢£¬
ÕâÊÇÓÉÓÚÕâЩÎļþÊÇÊôÓÚWeb·þÎñÆ÷µÄ£¨nobody£©¡£
PHPµÄ°²È«Ä£Ê½È·ÊµÆðµ½ÁËһЩ×÷Ó㬿ÉÒÔÈÏΪËüÊÇÒ»ÖÖÉî¶È·À·¶»úÖÆ¡£
¿ÉÊÇ£¬ËüÖ»ÌṩÁË¿ÉÁ¯µÄ±£»¤£¬Í¬Ê±ÔÚ±¾ÕÂÖÐҲûÓÐÆäËü°²È«´ëÊ©À´Ìæ´úËü¡£ 


Ïà¹ØÎĵµ£º

·Ç³£¼òµ¥PHPËõÂÔͼÉú³É³ÌÐòÔ´´úÂë


Ò»¸ö·Ç³£¼òµ¥µÄPHPÉú³ÉËõÂÔͼµÄ´úÂë³ÌÐò£¬²ÎÊý¼°´úÂ붼ËãµÃÉϾ«¼ò£¬ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔÊÔÏÂËüµÄ¹¦ÄÜ£¬Óв»Ì«ÍêÉƵĵط½»¹ÇëÖ¸Õý¡£ ·ÇÔ­´´£¬À´×ÔÍøÂç
<?$FILENAME="image_name";
// Éú³ÉͼƬµÄ¿í¶È
$RESIZEWIDTH=400;
// Éú³ÉͼƬµÄ¸ß¶È
$RESIZEHEIGHT=400;
function ResizeImage($im,$maxwidth,$maxheight,$name){ ......

ºÃÓõĴøphp µÄÃâ·Ñ¿Õ¼ä

¿Õ¼ä˵Ã÷£º   (À´×ÔÕʺţºwujiapµÄÍƹã)
1¡¢Ö§³ÖASP¡¢PHP¡¢HTML
2¡¢Ö§³ÖFTPÉÏ´«£¨100M£©
3¡¢¼¼ÊõÖ§³Ö--BBSµçÄÔÂÛ̳.
4¡¢Ìṩ50M MySqlÊý¾Ý¿âʹÓÃ.
5¡¢ÌṩÃâ·Ñ¶þ¼¶ÓòÃû
6¡¢Ìṩ¶¥¼¶ÓòÃû°ó¶¨·þÎñ
7¡¢Ö§³Ö¿ØÖÆÃæ°æ¶ÀÁ¢×ÔÖú¹ÜÀí
8¡¢Ãâ·Ñ¿Õ¼äÏÞÖÆIISÁ¬½ÓÊý=(100)
9¡¢¿Õ¼äËٶȿÉÒÔ·ÃÎÊGhostXpÏÂÔØÕ¾²âÊÔ
Èø ......

LinuxÖа²×°PHP 5½Ì³Ì

µÚÒ»²½ °²×°MySQL
[root@localhost usr]# groupadd mysql
[root@localhost usr]# useradd -g mysql mysql
[root@localhost usr]# cd /usr/local
[root@localhost local]# tar -zxvf mysql-5.0.51.tar.gz
[root@localhost local]# cd mysql-5.0.51
[root@localhost mysql-5.0.51# ./configure --prefix=/usr/local/my ......

phpµÄ°æ±¾Çø±ð

VC6ÊÇʲô£¿
VC6¾ÍÊÇlegacy Visual
Studio 6 compiler£¬¾ÍÊÇʹÓÃÕâ¸ö±àÒëÆ÷±àÒëµÄ
VC9ÊÇʲô£¿
VC9¾ÍÊÇthe Visual Studio
2008 compiler£¬¾ÍÊÇÓÃ΢ÈíµÄVS±à¼­Æ÷±àÒëµÄ
ÄÇÎÒÃÇÈçºÎÑ¡ÔñÏÂÔØÄĸö°æ±¾µÄPHPÄØ£¿
Èç¹ûÄãÊÇÔÚwindowsÏÂ
ʹÓÃApache+PHPµÄ£¬ÇëÑ¡ÔñVC6°æ±¾£»
Èç¹ûÄãÊÇÔÚwindowsÏÂʹÓÃIIS+PHPµÄ£¬ÇëÑ¡ÔñVC9 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ