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

php ÑéÖ¤Âë

checkcode.php
====================
<?php
session_start();
$funcs = array('imagecreatetruecolor','imagecolorallocate','imagefill','imageline','imagedestroy','imagecolorallocatealpha','imageellipse','imagepng');
if(!function_exists('ob_gzhandler'))
    ob_clean();
 //create captcha
 $consts = 'cdfgkmnpqrstwxyz23456';
 $vowels = 'aek23456789';
 for ($x = 0; $x < 6; $x++)
 {
  $const[$x] = substr($consts, mt_rand(0,strlen($consts)-1),1);
  $vow[$x] = substr($vowels, mt_rand(0,strlen($vowels)-1),1);
 }
 $radomstring = $const[0] . $vow[0] .$const[2] . $const[1] . $vow[1] . $const[3] . $vow[3] . $const[4];
        $_SESSION['checkcode'] = $string = substr($radomstring,0,4); //only display 4 str
        //set up image, the first number is the width and the second is the height
 $imageX = strlen($radomstring)*8; //the image width
 $imageY = 20;      //the image height
 $im = imagecreatetruecolor($imageX,$imageY);
 //creates two variables to store color
 $background = imagecolorallocate($im, rand(180, 250), rand(180, 250), rand(180, 250));
 $foregroundArr = array(imagecolorallocate($im, rand(0, 20), rand(0, 20), rand(0, 20)),
         imagecolorallocate($im, rand(0, 20), rand(0, 10), rand(245, 255)),
         imagecolorallocate($im, rand(245, 255), rand(0, 20), rand(0, 10)),
         imagecolorallocate($im, rand(245, 255), rand(0, 20), rand(245, 255)));
 $foreground2 = imagecolorallocatealpha($im, rand(20, 100), rand(20, 100), rand(20, 100),80);
 $middleground = imagecolorallocate($im, rand(200, 160), rand(200, 160), rand(200, 160));
 $middleground2 = imagecolorallocatealpha($im, rand(180, 140), rand(180, 14


Ïà¹ØÎĵµ£º

phpÈëÃÅ½Ì³Ì ¾«¼ò°æ(¸½ÊÓƵ)

1¡¢Ç¶Èë·½·¨£º
ÀàËÆASPµÄ<%£¬PHP¿ÉÒÔÊÇ<?php»òÕßÊÇ<?£¬½áÊø·ûºÅÊÇ?>£¬µ±È»ÄúÒ²¿ÉÒÔ×Ô¼ºÖ¸¶¨¡£
2¡¢ÒýÓÃÎļþ£º
ÒýÓÃÎļþµÄ·½·¨ÓÐÁ½ÖÖ£ºrequire ¼° include¡£
require µÄʹÓ÷½·¨Èç require("MyRequireFile.php"); ¡£Õâ¸öº¯Êýͨ³£·ÅÔÚ PHP ³ÌÐòµÄ×îÇ°Ã棬PHP ³ÌÐòÔÚÖ´ÐÐÇ°£¬¾Í»áÏȶÁÈë require ËùÖ¸¶¨ÒýÈë ......

¡¾×ª¡¿¸ß¼¶PHPÓ¦ÓóÌÐò©¶´ÉóºË¼¼Êõ




×÷ÕߣºPh4nt0m Security Team
À´Ô´£ºhttp://www.ph4nt0m.org-a.googlepages.com/PSTZine_0x03_0x06.txt
==Ph4nt0m Security Team==

Issue 0x03, Phile #0x06 of 0x07

|=---------------------------------------- ......

phpѧϰ±Ê¼Ç£¨10£©:MYSQLÊý¾Ý¿âÖеij£ÓÃSQLÓï¾ä

MYSQLÊý¾Ý¿âÖеij£ÓÃSQLÓï¾ä
1¡¢SELECT ²éѯÓï¾äºÍÌõ¼þÓï¾ä
SELECT  ²éѯ×ֶΠfrom ±íÃû WHERE Ìõ¼þ 
²éѯ×ֶΣº¿ÉÒÔʹÓÃͨÅä·û* ¡¢×Ö¶ÎÃû¡¢×ֶαðÃû
±íÃû£º Êý¾Ý¿â.±íÃû £¬±íÃû
³£ÓÃÌõ¼þ£º = µÈÓÚ ¡¢<>²»µÈÓÚ¡¢in °üº¬ ¡¢&nb ......

phpÐòÁл¯

1£®Ç°ÑÔ
PHP £¨´Ó PHP 3.05
¿ªÊ¼£©Îª±£´æ¶ÔÏóÌṩÁËÒ»×éÐòÁл¯ºÍ·´ÐòÁл¯µÄº¯Êý£ºserialize¡¢unserialize¡£²»¹ýÔÚ PHP
ÊÖ²áÖжÔÕâÁ½¸öº¯ÊýµÄ˵Ã÷½öÏÞÓÚÈçºÎʹÓ㬶ø¶ÔÐòÁл¯½á¹ûµÄ¸ñʽȴû×öÈκÎ˵Ã÷¡£Òò´Ë£¬Õâ¶ÔÔÚÆäËûÓïÑÔÖÐʵÏÖ PHP
·½Ê½µÄÐòÁл¯À´Ëµ£¬¾Í±È½ÏÂé·³ÁË¡£ËäÈ»ÒÔÇ°Ò²ËѼ¯ÁËһЩÆäËûÓïÑÔʵÏÖµÄ PHP ÐòÁл¯µ ......

comparing strings in PHP with the == operator

×î½üÔÚGreg Beaver'sµÄblogÉÏ·¢±íµÄһƪÐÂÎÄÕ comparing strings in PHP with the == operator ÖÐÌá¼°ÁËPHPµÄ == ÔËËã·ûÔÚ¶Ô×Ö·û´®½øÐбȽÏʱֵµÃ×¢ÒâµÄÎÊÌâ¡£
ÔÚijЩÇé¿öÏ£¬PHP»á°ÑÀàÊýÖµÊý¾Ý£¨È纬ÓÐÊý×ÖµÄ×Ö·û´®µÈ£©×ª»»³ÉÊýÖµ´¦Àí£¬== ÔËËã·û¾ÍÊÇÆäÖÐÖ®Ò»¡£ÔÚʹÓà == ÔËËã·û¶ÔÁ½¸ö×Ö·û´®½øÐÐËÉÉ¢±È½Ïʱ£¬PHP»á°ÑÀàÊý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ