{"id":272726,"date":"2016-01-23T16:17:02","date_gmt":"2016-01-23T13:17:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=272726"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=272726","title":{"rendered":"\u041a\u0430\u043a \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0430\u0439\u0442 \u0438\u0437 Google Sites \u043d\u0430 \u0441\u0432\u043e\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433"},"content":{"rendered":"<p>       \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043a\u043e\u0441\u0442\u044b\u043b\u044c\u043d\u044b\u043c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u043c \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0430\u0439\u0442 \u0441 Google Sites (GS) \u043d\u0430 \u0441\u0432\u043e\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433.<\/p>\n<p>  <iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/hQMUqmVHEk4?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>\u041a\u043e\u0434<\/h1>\n<p>  <b>index.php<\/b>  <\/p>\n<pre><code class=\"php\">&lt;?include &quot;_config.php&quot;; if(strlen($_GET['param'])&gt;40){ \techo &quot;Error 414 Request URI too long :(&quot;; \texit; } header(&quot;Cache-Control:public, max-age=86400&quot;); error_reporting(0); $param=$_GET[&quot;param&quot;]; if($param==INDEX_PAGE OR $param==INDEX_PAGE.'\/'){ \t$param=''; } $url = strtolower('https:\/\/sites.google.com\/site\/'.GOOGLE_SITES_SITENAME.'\/'.$param); if (file_get_contents($url)){ \t$content = file_get_contents($url); \tinclude '_parser.php'; \tinclude '_header.php'; \techo $content; \t \t$file_info = new finfo(FILEINFO_MIME); \t$mime_type = $file_info-&gt;buffer($content); \tHeader ('Content-type: '.$mime_type); \t \t$widgeturl = 'http:\/\/'.SERVER_NAME.'\/'.$param; \tinclude &quot;_comments.php&quot;; }else{ \t$url='http:\/\/'.SERVER_NAME.'\/error.php?code=404'; \t$content = file_get_contents($url); \techo $content; } ?&gt; <\/code><\/pre>\n<p>  \u0425\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0438 \u0442\u0430\u043a \u0432\u0441\u0435 \u044f\u0441\u043d\u043e.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u2014 <b>_config.php<\/b>  <\/p>\n<pre><code class=\"php\">&lt;? define('SERVER_NAME' ,$_SERVER['SERVER_NAME']); define('DIRNAME', dirname(__FILE__).'\/'); define('GOOGLE_SITES_SITENAME', &quot;blastorq&quot;);     \/\/sites.google.com\/site\/blastorq\/ define('INDEX_PAGE', 'landing'); \t            \/\/sites.google.com\/site\/blastorq\/landing <\/code><\/pre>\n<p>  <i>GOOGLE_SITES_SITENAME<\/i> \u2014 \u0410\u0434\u0440\u0435\u0441 \u0441\u0430\u0439\u0442\u0430 GS \u0431\u0435\u0437 \u00absites.google.com\/site\/\u00bb, \u0443 \u043c\u0435\u043d\u044f, \u043a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u00absites.google.com\/site\/blastorq\u00bb<br \/>  <i>INDEX_PAGE<\/i> \u2014 \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441\u0430\u0439\u0442\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0430, \u0447\u0442\u043e\u2026 \u043d\u0443, \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438. \u0412\u043e \u0432\u0441\u0435\u0445 \u043e\u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e index, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u2014 landing.<\/p>\n<p>  \u041f\u043e\u0442\u043e\u043c \u0443 \u043d\u0430\u0441 &quot;<b>_parser.php<\/b>&quot; \u2014 \u043e\u043d \u043f\u0430\u0440\u0441\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0433\u0443\u0433\u043b-\u0441\u0430\u0439\u0442\u0430, \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0430\u0434\u0440\u0435\u0441\u0430 \u0438 \u0442.\u043f.  <\/p>\n<pre><code class=\"php\">&lt;?php \t$content = str_replace('&lt;a href=&quot;https:\/\/sites.google.com\/site\/'.GOOGLE_SITES_SITENAME.'\/&quot; ', '&lt;a href=&quot;http:\/\/'.SERVER_NAME.'\/&quot; ', $content); \t$content = str_replace('https:\/\/sites.google.com\/site\/'.GOOGLE_SITES_SITENAME.'\/', 'http:\/\/'.SERVER_NAME.'\/', $content); \t$content = str_replace('type=&quot;image\/x-icon&quot; href=&quot;\/\/www.google.com\/images\/icons\/product\/sites-16.ico&quot;', 'href=&quot;http:\/\/'.SERVER_NAME.'\/favicon.png&quot; type=&quot;image\/png&quot;', $content); \t$script=&quot;if(document.getElementById('sites-chrome-sidebar-left').style.display=='block'){document.getElementById('sites-chrome-sidebar-left').style.display='none';document.getElementById('sites-canvas-wrapper').style.display='block';document.getElementById('displayer').style.background='no-repeat url(http:\/\/&quot;.SERVER_NAME.&quot;\/pad.png) 1px 0'}else{document.getElementById('sites-chrome-sidebar-left').style.display='block';document.getElementById('displayer').style.background='no-repeat url(http:\/\/&quot;.SERVER_NAME.&quot;\/pad.png) -16px 0';document.getElementById('sites-canvas-wrapper').style.display='none';}&quot;; \t$content = str_replace('-header-horizontal-nav-container&quot; role=&quot;navigation&quot;&gt;', '-header-horizontal-nav-container&quot; role=&quot;navigation&quot;&gt;&lt;div id=&quot;displayerr&quot; onclick=&quot;'.$script.'&quot;&gt;&lt;div id=&quot;displayer&quot;&gt;&lt;\/div&gt;', $content); \t$content = str_replace(&quot;\t\t&quot;,&quot; &quot;, $content); \t$content = str_replace(&quot;\\n&quot;,&quot; &quot;, $content); \t$content = str_replace(&quot;\\r&quot;,&quot; &quot;, $content); while($i++&lt;10){$content = str_replace(&quot;  &quot;,&quot; &quot;, $content);} ?&gt; <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e.<\/p>\n<p>  \u0415\u0449\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u043a\u0440\u044b\u0442\u0438\u044f\/\u043f\u043e\u043a\u0430\u0437\u0430 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0430 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445.<\/p>\n<p>  \u041a\u043e\u043d\u0442\u0435\u043d\u0442:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9b5\/19f\/9dd\/9b519f9dd4444845898419bec7251175.png\"\/><\/p>\n<p>  \u0421\u0430\u0439\u0434\u0431\u0430\u0440:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3b3\/5fb\/c3d\/3b35fbc3d577430faba73e4daf91af18.png\"\/><\/p>\n<p>  \u041f\u043e\u0435\u0445\u0430\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0443 \u043d\u0430\u0441 &quot;<b>_header.php<\/b>&quot;  <\/p>\n<pre><code class=\"php\">&lt;meta charset=&quot;utf-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no&quot; \/&gt; &lt;meta name=&quot;HandheldFriendly&quot; content=&quot;True&quot; \/&gt; &lt;style&gt;#sites-chrome-footer-wrapper{display:none;} #sites-chrome-adminfooter-container{display:none;}.goog-te-ftab-float{display:none;}#:0.floatContainer{display:none;}.goog-te-ftab-frame{display:none;}.skiptranslate{display:none;}#:0.floatContainer{display:none;}&lt;\/style&gt; &lt;?php $useragent=$_SERVER['HTTP_USER_AGENT']; if(**\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c**){echo &quot;&lt;style&gt;#sites-chrome-sidebar-left{display:none;}#displayerr{margin:8px;padding:8px;background:#999999;width:17px;border-radius:5px;}#displayer{width: 17px;height: 16px;background: no-repeat url('http:\/\/&lt;?=SERVER_NAME;?&gt;\/pad.png') 1px 0;}&lt;\/style&gt;&quot;;}?&gt; <\/code><\/pre>\n<p>  \u0422\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043c\u044b \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c css-\u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u0432\u044b\u0448\u0435.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">$useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('\/(android|bb\\d+|meego).+mobile|avantgo|bada\\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino\/i',$useragent)||preg_match('\/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-\/i',substr($useragent,0,4))){echo &quot;\u041c\u043e\u0431\u0438\u043b\u0430&quot;;}else{echo &quot;\u041a\u043e\u043c\u043f&quot;;}?&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412 <b>_comments.php<\/b> \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u043b\u043e\u043a \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/vk.com\/dev\/Comments\">\u043e\u0442 \u0432\u043a<\/a>.<\/p>\n<p>  \u0412\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430 GitHub: <a href=\"\/\/github.com\/da411d\/Google-Sites-Stealer\">\/\/github.com\/da411d\/Google-Sites-Stealer<\/a><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435, \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0438\u043d\u0443\u0441\u0443\u0439\u0442\u0435.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/275747\/\"> https:\/\/habrahabr.ru\/post\/275747\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043a\u043e\u0441\u0442\u044b\u043b\u044c\u043d\u044b\u043c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u043c \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0430\u0439\u0442 \u0441 Google Sites (GS) \u043d\u0430 \u0441\u0432\u043e\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433.<\/p>\n<p>  <iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/hQMUqmVHEk4?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-272726","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272726"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272726\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}