{"id":231157,"date":"2014-07-26T10:57:03","date_gmt":"2014-07-26T06:57:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=231157"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=231157","title":{"rendered":"<span class=\"post_title\">\u0418\u0433\u0440\u043e\u0432\u043e\u0439 \u0426\u0435\u043d\u0442\u0440@Mail.Ru<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h5>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0445\u0430\u0431\u0440! \u041c\u043e\u0439 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u043f\u043e\u0441\u0442 \u00ab\u041a\u0430\u043a \u043c\u044b \u0447\u0438\u0442\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438 \u0438\u043b\u0438 \u043a\u043e\u0433\u043e \u0441\u0433\u0443\u0431\u0438\u043b\u0430 \u0436\u0430\u0434\u043d\u043e\u0441\u0442\u044c\u00bb \u0432\u044b\u0437\u0432\u0430\u043b \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u0440\u0430\u043a\u043e\u0431\u0435\u0441\u0438\u0435, \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u043e\u0432\u0435\u0442\u043e\u0432 \u043e\u0442 \u043c\u0435\u043d\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u043a\u0438. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u2014 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u043c\u0430\u043d\u0443\u0430\u043b \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0418\u0433\u0440\u043e\u0432\u043e\u0439 \u0426\u0435\u043d\u0442\u0440 Mail.Ru(\u0437\u0430\u043e\u0434\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0418\u0433\u0440\u043e\u0432\u043e\u043c \u0426\u0435\u043d\u0442\u0440\u0435 Mail.ru). \u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/h5>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0412\u044b \u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u043a\u0438 \u2014 \u0434\u0435\u0440\u0436\u0438\u0442\u0435! \u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<h4>\u0427\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f?<\/h4>\n<p>  \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043d\u0430 \u043d\u0435\u0433\u043e PHP.<br \/>  \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 Visual Studio \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 C#<br \/>  \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u041e\u0421 Windows.<\/p>\n<h4>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0418\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u0426\u0435\u043d\u0442\u0440\u0430<\/h4>\n<h5>(\u0434\u0430\u043b\u0435\u0435 \u0413\u0426)<\/h5>\n<p>  1. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0413\u0426 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c\/\u043c\u044d\u0439\u043b\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f(\u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a php-\u0441\u043a\u0440\u0438\u043f\u0442\u0443).<br \/>  2. \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442 xml-\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 simple-xml, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 GcToken<br \/>  3. \u0413\u0426 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c GcAuth<br \/>  4. \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442 xml, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 SessionKey, Uid, Token, MinVersion \u0438 Timestamp<br \/>  5. \u0413\u0426 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0438\u0433\u0440\u0443 \u0441 \u0422\u043e\u043a\u0435\u043d\u043e\u043c, \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 Uid<\/p>\n<h4>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443<\/h4>\n<p>  <\/p>\n<h5>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439<\/h5>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e html-\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u00abStart\u00bb \u0438 \u043f\u0438\u0448\u0435\u043c JS-\u043a\u043e\u0434 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 POST-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.  <\/p>\n<pre><code class=\"html\">&lt;html&gt;     &lt;head&gt;        &lt;title&gt;\u0426\u0435\u043d\u0442\u0440 \u0418\u0433\u0440&lt;\/title&gt;        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot;&gt;        &lt;script type=&quot;text\/javascript&quot;&gt; function gcauth(){   $.post(&quot;gcauth.php&quot;, { email: &quot;\u0442\u0443\u0442 email&quot;, password: &quot;\u0442\u0443\u0442 \u043f\u0430\u0440\u043e\u043b\u044c&quot; }, \/\/ \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u043a\u0430\u043a \u0413\u0426   function(data){     var str = data.replace('&quot;','');     var spl = str.split(&quot;&quot;%&quot;&quot;);     var gcToken = spl[2];     \/\/var uid = spl[1];     \/\/alert();     $.post(&quot;autologin.php&quot;, { gctoken: gcToken }, \/\/ \u0423\u0436\u0435 \u0441 \u0442\u043e\u043a\u0435\u043d\u043e\u043c \u0413\u0426 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0432 \u0438\u0433\u0440\u0435       function(logindata){         logindata = logindata.split(&quot;%&quot;);         var uid = logindata[0];         var token = logindata[1];         var link = &quot;starter:&quot; + logindata+&quot;;&quot;;        window.location.href = link;        \/\/alert(link);       })   }); } \t&lt;\/script&gt;     &lt;\/head&gt;     &lt;body&gt;        &lt;button onclick=&quot;gcauth()&quot;&gt;Start&lt;\/button&gt;     &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439<\/h5>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <b>starter.reg<\/b><br \/>  <code>REGEDIT4  [HKEY_CLASSES_ROOT\\starter] @=&quot;URL:Starter Protocol&quot; &quot;URL Protocol&quot;=&quot;starter&quot;  [HKEY_CLASSES_ROOT\\starter\\shell]  [HKEY_CLASSES_ROOT\\starter\\shell\\open]  [HKEY_CLASSES_ROOT\\starter\\shell\\open\\command] @=&quot;\\&quot;C:\\\\GameCenter@Mail.Ru.exe\\&quot; \\&quot;%1\\&quot;&quot; <\/code><br \/>  \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440  <\/p>\n<h5>\u041f\u0438\u0448\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 C#<\/h5>\n<p>  1.\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 Windows Forms \u0432 Visual Studio<br \/>  2. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b Program.cs  <\/p>\n<pre><code class=\"cs\">using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Input;  namespace WindowsFormsApplication1 {     static class Program     {         \/\/\/ &lt;summary&gt;         \/\/\/ \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.         \/\/\/ &lt;\/summary&gt;        static String ProcessInput(string s)        {            return s;        }        [STAThread]        private static void Main(string[] args) \/\/\u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b(\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b)        {            Application.EnableVisualStyles();            Application.SetCompatibleTextRenderingDefault(false);            foreach (string s in args)            {                string[] arguments; \/\/ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b                string[] arr; \/\/ \u043c\u0430\u0441\u0441\u0438\u0432                string uid; \/\/ ID \u044e\u0437\u0435\u0440\u0430                string token;\/\/ \u0442\u043e\u043a\u0435\u043d(\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447)                arguments = ProcessInput(s).Split(':');                arr = arguments[1].Split(',');                uid = arr[0];                token = arr[1];                \/*- \u0414\u0430\u043b\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b, \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 -*\/                if (Environment.GetEnvironmentVariable(&quot;GC_PROJECT_ID&quot;) == null)                    \/\/ GC_PROJECT_ID 1177                    Environment.SetEnvironmentVariable(&quot;GC_PROJECT_ID&quot;, &quot;1177&quot;);                if (Environment.GetEnvironmentVariable(&quot;GC_TYPE_ID&quot;) == null)                    \/\/ GC_TYPE_ID 0                    Environment.SetEnvironmentVariable(&quot;GC_TYPE_ID&quot;, &quot;0&quot;);                if (Environment.GetEnvironmentVariable(&quot;GC_PIPE_NAME&quot;) == null)                    \/\/ GC_PIPE_NAME GameCenterV3                    Environment.SetEnvironmentVariable(&quot;GC_PIPE_NAME&quot;, &quot;GameCenterV3&quot;);                if (Environment.GetEnvironmentVariable(&quot;GC_GCLAY_PATHNAME&quot;) == null)                    \/\/ GC_GCLAY_PATHNAME C:\\...\\Local\\Mail.Ru\\GameCenter\\GCLay.dll                    Environment.SetEnvironmentVariable(&quot;GC_GCLAY_PATHNAME&quot;, @&quot;\u041f\u0443\u0442\u044c \u043a \\GameCenter\\GCLay.dll&quot;); \/\/ \u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a GCLay.dll                if (Environment.GetEnvironmentVariable(&quot;CHROME_ALLOCATOR&quot;) == null)                    \/\/ CHROME_ALLOCATOR TCMALLOC                    Environment.SetEnvironmentVariable(&quot;CHROME_ALLOCATOR&quot;, &quot;TCMALLOC&quot;);                 Environment.SetEnvironmentVariable(&quot;MOZ_CRASHREPORTER_DATA_DIRECTORY&quot;, &quot;&quot;);                Environment.SetEnvironmentVariable(&quot;MOZ_CRASHREPORTER_RESTART_ARG_0&quot;, &quot;&quot;);                Environment.SetEnvironmentVariable(&quot;MOZ_CRASHREPORTER_STRINGS_OVERRIDE&quot;, &quot;&quot;);                Process.Start(&quot;C:\\\\GamesMailRu\\\\Warface\\\\Bin32Release\\\\Game.exe&quot;, &quot;--shard_id=0 +online_server s0.warface.ru -uid &quot;+uid+&quot; -token &quot;+token); \/\/ \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Warface \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438                MessageBox.Show(&quot;Click [OK] to close&quot;); \/\/ \u0422\u043e\u0440\u043c\u043e\u0437\u0438\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b            }        }     } } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c<\/h4>\n<p>  <\/p>\n<h5>\u041f\u0438\u0448\u0435\u043c PHP-\u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0442.\u0434.<\/h5>\n<p>  <i>*\u041c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0441\u043d\u0438\u0444\u0444\u0435\u0440\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b<\/i>  <\/p>\n<h6>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b gcauth.php<\/h6>\n<p>  <\/p>\n<pre><code class=\"php\">&lt;?php header('Content-type: text\/html; charset=utf-8'); \/\/ \u0432\u0445\u043e\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \/\/ \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c $hostname = 'authdl.mail.ru'; $email = $_POST['email']; $password = $_POST['password']; \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f cURL $ch = curl_init('https:\/\/'.$hostname.'\/ec.php?hint=GcAuth'); \/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 curl_setopt ($ch, CURLOPT_HEADER, 1);  \/\/ \u0435\u0441\u043b\u0438 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 HTTP User-agent, \u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: curl_setopt ($ch, CURLOPT_USERAGENT, 'Downloader\/4000'); \/\/ \u0435\u043b\u0441\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u0441\u044f \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0435\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a HTTP Referer: curl_setopt ($ch, CURLOPT_REFERER, $hostname); \/\/ \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 POST curl_setopt ($ch, CURLOPT_POST, 1); \/\/ \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e Cookie \u0432 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); \/\/ \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044f \u0444\u043e\u0440\u043c\u044b curl_setopt ($ch, CURLOPT_POSTFIELDS, '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;GcAuth Username=&quot;'.$email.'&quot; Password=&quot;'.$password.'&quot; ChannelId=&quot;0&quot;\/&gt;'); \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); \/\/ \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); \/\/ \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c Host SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application\/x-www-form-urlencoded')); \/\/ \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b cURL \u043d\u0435 \u0432\u044b\u0441\u044b\u043b\u0430\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0430 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \/\/ \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 curl_exec ($ch); \/\/ \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b $result = curl_multi_getcontent ($ch); $data = curl_exec($ch); $xml = htmlspecialchars($result); preg_match('\/SessionKey=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$sessionKeyArr); \/\/ \u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c SessionKey \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430\u043c\u0438 preg_match('\/Uid=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$uidArr); \/\/ \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 ID \u044e\u0437\u0435\u0440\u0430 preg_match('\/Token=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$tokenArr); \/\/ ... \u0441 \u0422\u043e\u043a\u0435\u043d\u043e\u043c preg_match('\/MinVersion=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$minVersionArr); \/\/ \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043d\u0430\u043c \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \/\/preg_match('\/Timestamp=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$timestampArr); \/\/ \u0412\u0440\u0435\u043c\u044f, \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e $SessionKey = str_replace(&quot;\\&quot;&quot;, &quot;&quot;,$sessionKeyArr[1]); $Uid = str_replace(&quot;\\&quot;&quot;, &quot;&quot;,$uidArr[1]); $Token = str_replace(&quot;\\&quot;&quot;, &quot;&quot;,$tokenArr[1]); $replace_quotes = array('&quot;', &quot;'&quot;); $MinVersion = str_replace($replace_quotes, &quot;&quot;, $minVersionArr[1]); \/*- \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 -*\/ echo $SessionKey; echo &quot;%&quot;; echo $Uid; echo &quot;%&quot;; echo $Token; echo &quot;%&quot;; echo trim($MinVersion); \/\/echo $Timestamp; \/\/echo $xml; \/\/echo $matches; \/\/ \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 cURL curl_close ($ch); ?&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c autologin.php<\/h6>\n<p>  <\/p>\n<pre><code class=\"php\">&lt;?php header('Content-type: text\/html; charset=utf-8'); $GcToken = $_POST['gctoken']; \/\/ \u0432\u0445\u043e\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \/\/ \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c $hostname = 'authdl.mail.ru'; \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f cURL $ch = curl_init('https:\/\/'.$hostname.'\/sz.php?hint=AutoLogin'); \/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 curl_setopt ($ch, CURLOPT_HEADER, 1);  \/\/ \u0435\u0441\u043b\u0438 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 HTTP User-agent, \u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: curl_setopt ($ch, CURLOPT_USERAGENT, 'Downloader\/4000'); \/\/ \u0435\u043b\u0441\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u0441\u044f \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0435\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a HTTP Referer: curl_setopt ($ch, CURLOPT_REFERER, $hostname); \/\/ \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 POST curl_setopt ($ch, CURLOPT_POST, 1); \/\/ \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e Cookie \u0432 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); \/\/ \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044f \u0444\u043e\u0440\u043c\u044b $postfield = '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;AutoLogin ProjectId=&quot;1177&quot; SubProjectId=&quot;0&quot; ShardId=&quot;0&quot; GcToken=&quot;'.$GcToken.'&quot;\/&gt;'; curl_setopt ($ch, CURLOPT_POSTFIELDS, $postfield); \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); \/\/ \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); \/\/ \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c Host SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application\/x-www-form-urlencoded')); \/\/ \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b cURL \u043d\u0435 \u0432\u044b\u0441\u044b\u043b\u0430\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0430 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \/\/ \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 curl_exec ($ch); \/\/ \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b $result = curl_multi_getcontent ($ch); $data = curl_exec($ch); $xml = htmlspecialchars($result); preg_match('\/PersId=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$persIdArr); \/\/ \u0412\u044b\u0434\u0435\u043b\u044f\u0435\u043c PersId \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 preg_match('\/Key=[&quot;\\']?([^&quot;\\' ]*)[&quot;\\' ]\/is',$xml,$keyArr); \/\/ \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 Key $PersId = str_replace(&quot;&quot;&quot;, &quot;&quot;,$persIdArr[1]); $Key = str_replace(&quot;&quot;&quot;, &quot;&quot;,$keyArr[1]); \/*- \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 -*\/ echo $PersId; echo &quot;%&quot;; echo $Key; \/\/ \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 cURL curl_close ($ch); ?&gt; <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043b\u0438\u0448\u044c \u0437\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0438\u0441\u043f\u044b\u0442\u0430\u0442\u044c. \u041d\u0430 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u043e\u0433\u043b\u0430 \u0431\u044b\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043a\u0430\u043a\u0430\u044f-\u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0435\u0449\u0435 \u043d\u0430 \u0447\u0442\u043e-\u0442\u043e.<\/h5>\n<p>  <\/p>\n<h4><b>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435 \u043c\u0430\u043d\u0443\u0430\u043b\u0430. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432 \u0447\u0435\u043c-\u0442\u043e \u044f \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433, \u0443\u0434\u0430\u0447\u0438!<\/b><\/h4>\n<p>  <\/p>\n<h6>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c Mail.Ru \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c.<\/h6>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/231157\/\"> http:\/\/habrahabr.ru\/post\/231157\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h5>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0445\u0430\u0431\u0440! \u041c\u043e\u0439 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u043f\u043e\u0441\u0442 \u00ab\u041a\u0430\u043a \u043c\u044b \u0447\u0438\u0442\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438 \u0438\u043b\u0438 \u043a\u043e\u0433\u043e \u0441\u0433\u0443\u0431\u0438\u043b\u0430 \u0436\u0430\u0434\u043d\u043e\u0441\u0442\u044c\u00bb \u0432\u044b\u0437\u0432\u0430\u043b \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u0440\u0430\u043a\u043e\u0431\u0435\u0441\u0438\u0435, \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u043e\u0432\u0435\u0442\u043e\u0432 \u043e\u0442 \u043c\u0435\u043d\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u043a\u0438. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u2014 \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u043c\u0430\u043d\u0443\u0430\u043b \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0418\u0433\u0440\u043e\u0432\u043e\u0439 \u0426\u0435\u043d\u0442\u0440 Mail.Ru(\u0437\u0430\u043e\u0434\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u0440\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0418\u0433\u0440\u043e\u0432\u043e\u043c \u0426\u0435\u043d\u0442\u0440\u0435 Mail.ru). \u041f\u043e\u0435\u0445\u0430\u043b\u0438!<\/h5>\n<p>  <\/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-231157","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/231157","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=231157"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/231157\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}