{"id":452415,"date":"2025-03-20T09:00:10","date_gmt":"2025-03-20T09:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=452415"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=452415","title":{"rendered":"<span>\u0414\u0435\u0431\u0430\u0433 \u043d\u0430 Silicon<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/p>\n<\/blockquote>\n<p>\u042f, \u043a\u0430\u043a \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u044c \u044f\u0431\u043b\u043e\u0447\u043d\u043e\u0433\u043e \u043d\u043e\u0443\u0442\u0430, \u0438\u0433\u0440\u043e\u043a \u0432 CTF \u0438 \u0431\u0438\u043d\u0430\u0440\u0449\u0438\u043a, \u0440\u0435\u0448\u0438\u043b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u0431\u044b\u043b \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0438\u0432\u043b\u0451\u043d, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f GDB. \u0412 \u0438\u0442\u043e\u0433\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u044f \u043d\u0430\u0448\u0451\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438 \u0440\u0435\u0448\u0438\u043b \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<p>\u0427\u0442\u043e \u0436 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c? <\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043c Rosetta, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 x86_64.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c pwndbg-lldb \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 Mach-O \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c pwndbg \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 ELF-\u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u0438\u0442\u043e\u0433\u0438<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>Rosetta<\/p>\n<\/blockquote>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c Rosetta. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437\u00a0softwareupdate. \u041f\u043e\u0442\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b.<\/p>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Rosetta 2:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"bash\">\/usr\/sbin\/softwareupdate --install-rosetta --agree-to-license<\/code><\/pre>\n<p>   2. \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u043d\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e Terminal \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 x86_64:<\/p>\n<pre><code class=\"bash\">arch -x86_64 \/bin\/bash<\/code><\/pre>\n<p>\u0412\u0430\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e\u00a0arch -x86_64 &lt;cmd&gt;\u00a0\u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b\u0437\u043e\u0432 bash. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0443\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443, \u0442\u0430\u043a\u0443\u044e \u043a\u0430\u043a zsh, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u0443\u0442\u044c \u0434\u043e \u043d\u0435\u0451.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"bash\">uname -a Darwin MacBook-Air-3.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 ```PDT 2024; root:xnu-11215.41.3~2\/RELEASE_ARM64_T8122 arm64<\/code><\/pre>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0441\u0435\u0439\u0447\u0430\u0441 \u0443 \u043c\u0435\u043d\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 arm64, \u043d\u043e, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0432 \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">arch -x86_64 \/bin\/bash <\/code><\/pre>\n<p>\u043c\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 x86_64. <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:<\/p>\n<pre><code>uname -a Darwin MacBook-Air-3.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 PDT 2024; root:xnu-11215.41.3~2\/RELEASE_ARM64_T8122 x86_64<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430 x86_64, \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 C \u043f\u043e\u0434 \u043d\u043e\u0432\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439:<\/p>\n<pre><code class=\"bash\">cat &gt;&gt; main.c <\/code><\/pre>\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt;   int main(){   printf(\"Hello, world!\");   return 0; }<\/code><\/pre>\n<pre><code class=\"bash\">gcc main.c -o main  file main  main: Mach-O 64-bit executable x86_64 .\/main  Hello, world!<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0438\u043d\u044b\u043c\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\u043c\u0438, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0438 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430\u043c\u0438.<\/p>\n<blockquote>\n<p>PWNDBG-LLDB<\/p>\n<\/blockquote>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u042f \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e \u0435\u0451, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c nix \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0430\u0432\u0438\u043b pwndbg-lldb.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/nixos.org\/download\/\" rel=\"noopener noreferrer nofollow\">nix<\/a> (package manager). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430, \u043b\u0438\u0431\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<pre><code class=\"bash\">sh &lt;(curl -L https:\/\/nixos.org\/nix\/install)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0447\u0435\u0440\u0435\u0437 nix \u0441\u0442\u0430\u0432\u0438\u043c pwndbg:<\/p>\n<pre><code class=\"bash\">nix shell github:pwndbg\/pwndbg#pwndbg-lldb --extra-experimental-features nix-command '--extra-experimental-features flakes<\/code><\/pre>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f pwndbg-lldb \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt;  void vulnerable_function() {   char input[100];   printf(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443: \");   gets(input);    printf(input);  }  int main() {   vulnerable_function();   return 0; }<\/code><\/pre>\n<p>Cheatsheet \u043f\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438:<\/p>\n<pre><code class=\"bash\">gcc &lt;filename&gt;.c -o &lt;output_file_name&gt; -g <\/code><\/pre>\n<ul>\n<li>\n<p>-g\u00a0\u2014 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p>-o\u00a0\u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c pwndbg-lldb \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 pwndbg:<\/p>\n<pre><code class=\"bash\">pwndbg-lldb .\/&lt;output_file_name&gt;  pwndbg-lldb&gt; breakpoint set -n &lt;vuln_func&gt;  pwndbg-lldb&gt; run  \/\/ \u0434\u0430\u043b\u044c\u0448\u0435 \u043a\u0430\u043a \u0432 gdb, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0435\u0441\u044c :D <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u0430\u044f \u0432\u043a\u0443\u0441\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u2014 pwndbg \u043d\u0430 arm64 xD.<\/p>\n<blockquote>\n<p>PWNDBG-GDB<\/p>\n<\/blockquote>\n<p>\u041f\u043e \u0441\u0445\u0435\u043c\u0435 \u0432\u0441\u0451 \u0442\u043e \u0436\u0435: \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 nix \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u043e \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043f\u0440\u0438\u043a\u043e\u043b\u0430\u043c\u0438.<\/p>\n<pre><code>nix shell github:pwndbg\/pwndbg --extra-experimental-features nix-command --extra-experimental-features flakes<\/code><\/pre>\n<p>\u0412\u0441\u0451, pwndbg \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043d\u043e debug \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u0442\u0435\u0431\u044f Mac xD. \u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c? \u0412\u044b\u0445\u043e\u0434 \u0435\u0441\u0442\u044c \u2014 \u044d\u0442\u043e qemu.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 qemu \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/docs.orbstack.dev\/machines\/\" rel=\"noopener noreferrer nofollow\">Orbstack<\/a>. \u0423 \u043d\u0438\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c qemu-static-user (user-space&#8217;s VM):<\/p>\n<pre><code>sudo apt install qemu-user-static qemu-x86_64-static -g 1234 .\/hello<\/code><\/pre>\n<p>\u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n<pre><code>pwngdb .\/hello target remote :1234 continue<\/code><\/pre>\n<p>\u0411\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c ELF-\u0444\u0430\u0439\u043b\u044b \u043d\u0430 Mac \u0432\u043e\u043e\u0431\u0449\u0435 \u0431\u0435\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432.\u00a0exec format error\u00a0\u0431\u0443\u0434\u0435\u0442 \u0432\u0430\u0448\u0438\u043c \u043b\u0443\u0447\u0448\u0438\u043c \u0434\u0440\u0443\u0433\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0451 \u0436\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 qemu: \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 Orbstack, \u043b\u0438\u0431\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 UTM. \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 Orbstack.<\/p>\n<blockquote>\n<p>\u0418\u0442\u043e\u0433\u043e<\/p>\n<\/blockquote>\n<p>\u041c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u043d\u0430 macOS. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043b\u044f x86_64, arm \u0438 Mach-O \u0444\u0430\u0439\u043b\u044b \u044d\u0442\u0438\u0445 \u0436\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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:\/\/habr.com\/ru\/articles\/892544\/\"> https:\/\/habr.com\/ru\/articles\/892544\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/p>\n<\/blockquote>\n<p>\u042f, \u043a\u0430\u043a \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u044c \u044f\u0431\u043b\u043e\u0447\u043d\u043e\u0433\u043e \u043d\u043e\u0443\u0442\u0430, \u0438\u0433\u0440\u043e\u043a \u0432 CTF \u0438 \u0431\u0438\u043d\u0430\u0440\u0449\u0438\u043a, \u0440\u0435\u0448\u0438\u043b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u0431\u044b\u043b \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u0438\u0432\u043b\u0451\u043d, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f GDB. \u0412 \u0438\u0442\u043e\u0433\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u044f \u043d\u0430\u0448\u0451\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438 \u0440\u0435\u0448\u0438\u043b \u0435\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<p>\u0427\u0442\u043e \u0436 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c? <\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043c Rosetta, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 x86_64.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c pwndbg-lldb \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 Mach-O \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c pwndbg \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 ELF-\u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u0438\u0442\u043e\u0433\u0438<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>Rosetta<\/p>\n<\/blockquote>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c Rosetta. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437\u00a0softwareupdate. \u041f\u043e\u0442\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b.<\/p>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Rosetta 2:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"bash\">\/usr\/sbin\/softwareupdate --install-rosetta --agree-to-license<\/code><\/pre>\n<p>   2. \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u043d\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e Terminal \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 x86_64:<\/p>\n<pre><code class=\"bash\">arch -x86_64 \/bin\/bash<\/code><\/pre>\n<p>\u0412\u0430\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e\u00a0arch -x86_64 &lt;cmd&gt;\u00a0\u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b\u0437\u043e\u0432 bash. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0443\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443, \u0442\u0430\u043a\u0443\u044e \u043a\u0430\u043a zsh, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u0443\u0442\u044c \u0434\u043e \u043d\u0435\u0451.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"bash\">uname -a Darwin MacBook-Air-3.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 ```PDT 2024; root:xnu-11215.41.3~2\/RELEASE_ARM64_T8122 arm64<\/code><\/pre>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0441\u0435\u0439\u0447\u0430\u0441 \u0443 \u043c\u0435\u043d\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 arm64, \u043d\u043e, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0432 \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">arch -x86_64 \/bin\/bash <\/code><\/pre>\n<p>\u043c\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 x86_64. <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:<\/p>\n<pre><code>uname -a Darwin MacBook-Air-3.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:26 PDT 2024; root:xnu-11215.41.3~2\/RELEASE_ARM64_T8122 x86_64<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430 x86_64, \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u0441 \u0434\u0430\u043d\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 C \u043f\u043e\u0434 \u043d\u043e\u0432\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439:<\/p>\n<pre><code class=\"bash\">cat &gt;&gt; main.c <\/code><\/pre>\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt;   int main(){   printf(\"Hello, world!\");   return 0; }<\/code><\/pre>\n<pre><code class=\"bash\">gcc main.c -o main  file main  main: Mach-O 64-bit executable x86_64 .\/main  Hello, world!<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0438\u043d\u044b\u043c\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\u043c\u0438, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0438 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430\u043c\u0438.<\/p>\n<blockquote>\n<p>PWNDBG-LLDB<\/p>\n<\/blockquote>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435. \u042f \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e \u0435\u0451, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c nix \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0442\u0430\u0432\u0438\u043b pwndbg-lldb.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/nixos.org\/download\/\" rel=\"noopener noreferrer nofollow\">nix<\/a> (package manager). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430, \u043b\u0438\u0431\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<pre><code class=\"bash\">sh &lt;(curl -L https:\/\/nixos.org\/nix\/install)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0447\u0435\u0440\u0435\u0437 nix \u0441\u0442\u0430\u0432\u0438\u043c pwndbg:<\/p>\n<pre><code class=\"bash\">nix shell github:pwndbg\/pwndbg#pwndbg-lldb --extra-experimental-features nix-command '--extra-experimental-features flakes<\/code><\/pre>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f pwndbg-lldb \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt;  void vulnerable_function() {   char input[100];   printf(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443: \");   gets(input);    printf(input);  }  int main() {   vulnerable_function();   return 0; }<\/code><\/pre>\n<p>Cheatsheet \u043f\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438:<\/p>\n<pre><code class=\"bash\">gcc &lt;filename&gt;.c -o &lt;output_file_name&gt; -g <\/code><\/pre>\n<ul>\n<li>\n<p>-g\u00a0\u2014 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p>-o\u00a0\u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c pwndbg-lldb \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 pwndbg:<\/p>\n<pre><code class=\"bash\">pwndbg-lldb .\/&lt;output_file_name&gt;  pwndbg-lldb&gt; breakpoint set -n &lt;vuln_func&gt;  pwndbg-lldb&gt; run  \/\/ \u0434\u0430\u043b\u044c\u0448\u0435 \u043a\u0430\u043a \u0432 gdb, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0435\u0441\u044c :D <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u0430\u044f \u0432\u043a\u0443\u0441\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u2014 pwndbg \u043d\u0430 arm64 xD.<\/p>\n<blockquote>\n<p>PWNDBG-GDB<\/p>\n<\/blockquote>\n<p>\u041f\u043e \u0441\u0445\u0435\u043c\u0435 \u0432\u0441\u0451 \u0442\u043e \u0436\u0435: \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 nix \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u043e \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043f\u0440\u0438\u043a\u043e\u043b\u0430\u043c\u0438.<\/p>\n<pre><code>nix shell github:pwndbg\/pwndbg --extra-experimental-features nix-command --extra-experimental-features flakes<\/code><\/pre>\n<p>\u0412\u0441\u0451, pwndbg \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043d\u043e debug \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041f\u043e\u0447\u0435\u043c\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u0442\u0435\u0431\u044f Mac xD. \u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c? \u0412\u044b\u0445\u043e\u0434 \u0435\u0441\u0442\u044c \u2014 \u044d\u0442\u043e qemu.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 qemu \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/docs.orbstack.dev\/machines\/\" rel=\"noopener noreferrer nofollow\">Orbstack<\/a>. \u0423 \u043d\u0438\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c qemu-static-user (user-space&#8217;s VM):<\/p>\n<pre><code>sudo apt install qemu-user-static qemu-x86_64-static -g 1234 .\/hello<\/code><\/pre>\n<p>\u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n<pre><code>pwngdb .\/hello target remote :1234 continue<\/code><\/pre>\n<p>\u0411\u0435\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c ELF-\u0444\u0430\u0439\u043b\u044b \u043d\u0430 Mac \u0432\u043e\u043e\u0431\u0449\u0435 \u0431\u0435\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432.\u00a0exec format error\u00a0\u0431\u0443\u0434\u0435\u0442 \u0432\u0430\u0448\u0438\u043c \u043b\u0443\u0447\u0448\u0438\u043c \u0434\u0440\u0443\u0433\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0451 \u0436\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 qemu: \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 Orbstack, \u043b\u0438\u0431\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 UTM. \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 Orbstack.<\/p>\n<blockquote>\n<p>\u0418\u0442\u043e\u0433\u043e<\/p>\n<\/blockquote>\n<p>\u041c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u043d\u0430 macOS. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043b\u044f x86_64, arm \u0438 Mach-O \u0444\u0430\u0439\u043b\u044b \u044d\u0442\u0438\u0445 \u0436\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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:\/\/habr.com\/ru\/articles\/892544\/\"> https:\/\/habr.com\/ru\/articles\/892544\/<\/a><br \/><\/br><\/br><\/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-452415","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452415","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=452415"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452415\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}