{"id":199,"date":"2014-06-27T10:48:14","date_gmt":"2014-06-27T10:48:14","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=199"},"modified":"2014-06-27T10:48:14","modified_gmt":"2014-06-27T10:48:14","slug":"rosi%e5%9b%be%e7%89%87%e6%8a%93%e5%8f%96%e7%9a%84php%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/199.html","title":{"rendered":"Rosi\u56fe\u7247\u6293\u53d6\u7684PHP\u811a\u672c"},"content":{"rendered":"<p>\u4ece\u522b\u4eba\u7684blog\u4e2d\u8f6c\u6765\u7684\uff0c\u6293\u53d6\u7684\u56fe\u7247\u5176\u5b9e\u90fd\u662f\u6b21\u8981\u7684\uff0c\u4e3b\u8981\u662f\u770b\u770b\u6b63\u5219\u7684\u7f16\u5199\uff08\u6bd5\u7adfPHP\u7684\u5355\u7ebf\u7a0b\u867d\u7136\u8bf4\u5728\u56fe\u7247\u722c\u53d6\u4e0a\u9762\u4e0d\u7b97\u662f\u660e\u663e\u7684\u52a3\u52bf\uff0c\u4f46\u662f\u901f\u5ea6\u6bd5\u7adf\u8fd8\u662f\u6162\u4e86\u4e9b\uff0c\u9002\u5408\u653e\u5728VPS\u4e0a\u6162\u6162\u6293\u53d6\uff0c\u722c\u866b\u8fd9\u4e2a\u4e1c\u897f\u5982\u679c\u6293\u53d6\u7684\u592a\u5feb\u592a\u9891\u7e41\u5bfc\u81f4\u522b\u4eba\u5c4f\u853d\u4f60\u5c31\u4e0d\u592a\u597d\u4e86\u2026\u2026\uff09\uff1a<\/p>\n<pre class=\"lang:php decode:true\">&lt;?php\n    set_time_limit(0);\n    function grabImage($url, $filename = ''){\n        ob_start();\n        readfile($url);\n        $img_data = ob_get_contents();\n        ob_end_clean();\n        $size = strlen($img_data);\n        $local_file = fopen($filename , 'a');\n        fwrite($local_file, $img_data);\n        fclose($local_file);\n        return $filename;\n    }\n    $base = \"http:\/\/missmm.com\/\";\n    function a0($s){\n        if($s &lt; 10){\n            return \"00\".$s;\n        }elseif($s &lt;100){\n            return \"0\".$s;\n        }else{\n            return $s;\n        }\n    };\n    for($i=763;$i&gt;0;$i--){\n        $html = file_get_contents($base.a0($i).\".html\");\n        preg_match_all('\/http.*?dulei.si.*?jpg\/i', $html,$arr);\n        foreach($arr[0] as $v){\n            $data = pathinfo($v);\n            grabImage($v,$data[\"basename\"]);\n            sleep(1);\n        }\n    }\n?&gt;<\/pre>\n<p>\u539f\u6587\u5730\u5740\uff1a<a href=\"http:\/\/fuck.0day5.com\/?p=767\" target=\"_blank\">http:\/\/fuck.0day5.com\/?p=767<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u522b\u4eba\u7684blog\u4e2d\u8f6c\u6765\u7684\uff0c\u6293\u53d6\u7684\u56fe\u7247\u5176\u5b9e\u90fd\u662f\u6b21\u8981\u7684\uff0c\u4e3b\u8981\u662f\u770b\u770b\u6b63\u5219\u7684\u7f16\u5199\uff08\u6bd5\u7adfPHP\u7684\u5355\u7ebf\u7a0b\u867d\u7136\u8bf4\u5728\u56fe\u7247\u722c\u53d6\u4e0a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12],"tags":[48,105],"class_list":["post-199","post","type-post","status-publish","format-standard","hentry","category-programing","category-tools","tag-php","tag-preg_match_all"],"views":6218,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/199","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=199"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}