{"id":404,"date":"2009-08-19T21:21:09","date_gmt":"2009-08-19T19:21:09","guid":{"rendered":"http:\/\/netspider.com.ua\/index.php\/2009\/08\/19\/opoveshhenie-o-logine-v-ssh\/"},"modified":"2010-01-17T10:21:56","modified_gmt":"2010-01-17T08:21:56","slug":"opoveshhenie-o-logine-v-ssh","status":"publish","type":"post","link":"https:\/\/netspider.com.ua\/index.php\/2009\/08\/19\/opoveshhenie-o-logine-v-ssh\/","title":{"rendered":"\u041e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u043b\u043e\u0433\u0438\u043d\u0435 \u0432 ssh"},"content":{"rendered":"<p>\u0412 \u0431\u043b\u043e\u0433\u0435 <a href=\"https:\/\/tinyurl.com\/huich\" target=\"_blank\">itblog.su<\/a>\u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 <a href=\"https:\/\/tinyurl.com\/l7cn5v\" target=\"_blank\">\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0438 \u043f\u043e \u043f\u043e\u0447\u0442\u0435 \u043e \u0432\u0445\u043e\u0434\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c<\/a>.<\/p>\r\n\r\n<blockquote><p>echo &#8216;ALERT &#8211; Root Shell Access on:&#8217; `date` `who` | mail -s &#8220;Alert: Root Access from `who | awk &#8216;{print $6}&#8217;`&#8221; <a href=\"mailto:user@dom.dom\">user@dom.dom<\/a><\/p><\/blockquote>\r\n\r\n<p>\u0412\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u0448\u0442\u0443\u043a\u0430. \u041d\u0443, \u043c\u0430\u043b\u043e \u043b\u0438, \u0432\u0434\u0440\u0443\u0433 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u043c\u0435\u0433\u0430\u0445\u0430\u0446\u043a\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0437\u043b\u043e\u043c\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 =). \u0422\u043e\u043b\u044c\u043a\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0442\u0430\u043a:<\/p>\r\n\r\n<blockquote><p>echo &#8220;ALERT &#8211; Root Shell Access on: `date; echo; who | bwtail -1`&#8221; | mail -s &#8220;Root From: `who | bwtail -1`&#8221; <a href=\"mailto:root@domain.com\">root@domain.com<\/a><\/p><\/blockquote>\r\n\r\n<p><strong>who<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0432\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u043a\u0430\u0432\u0430\u043d \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043b\u043e\u0433\u0438\u043d\u0430\u0445, \u043d\u043e \u043e\u043d\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u0442.\u043a. \u0437\u0430\u043c\u044b\u0441\u0435\u043b \u0432 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0438 \u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043b\u043e\u0433\u0438\u043d\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043e\u0442\u0440\u0435\u0437\u0430\u044e \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>tail<\/strong>.<\/p>\r\n\r\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <strong>bwtail<\/strong>? =) \u042d\u0442\u043e \u0447\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f tail (\u043f\u043e \u0441\u0443\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u0430\u0440\u0434\u043b\u0438\u043d\u043a \u043d\u0430 tail), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043c\u0435\u043d\u044f \u0441\u0434\u0435\u043b\u0430\u043d \u0446\u0432\u0435\u0442\u043d\u044b\u043c:<\/p>\r\n\r\n<blockquote><p># from .cshrc<br \/>\r\n alias tail\u00a0\u00a0\u00a0\u00a0\u00a0 \/root\/bin\/coloredtail.sh<\/p><\/blockquote>\r\n\r\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a:<\/p>\r\n\r\n<blockquote><p>~&gt; cat \/root\/bin\/coloredtail.sh<br \/>\r\n #!\/bin\/sh<\/p>\r\n\r\n<p>\/usr\/bin\/tail $@ | \/usr\/local\/bin\/colorize<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"\u0412 \u0431\u043b\u043e\u0433\u0435 itblog.su\u043f\u043e\u043f\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0438 \u043f\u043e \u043f\u043e\u0447\u0442\u0435 \u043e \u0432\u0445\u043e\u0434\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. echo &#8216;ALERT &#8211; Root Shell Access on:&#8217; `date` `who` | mail -s &#8220;Alert: Root Access from `who | awk &#8216;{print $6}&#8217;`&#8221; user@dom.dom \u0412\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u0448\u0442\u0443\u043a\u0430. \u041d\u0443, \u043c\u0430\u043b\u043e \u043b\u0438, \u0432\u0434\u0440\u0443\u0433 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u043c\u0435\u0433\u0430\u0445\u0430\u0446\u043a\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0437\u043b\u043e\u043c\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 =). \u0422\u043e\u043b\u044c\u043a\u043e \u0443 \u043c\u0435\u043d\u044f\u2026 <span class=\"read-more\"><a href=\"https:\/\/netspider.com.ua\/index.php\/2009\/08\/19\/opoveshhenie-o-logine-v-ssh\/\">\u0427\u0438\u0442\u0430\u0442\u0438 \u0434\u0430\u043b\u0456 &raquo;<\/a><\/span>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[597,594,414,48,592,593,409,543,432,595,596,532,598,599,600],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-main","tag-alert","tag-bwtail","tag-console","tag-freebsd","tag-itblog","tag-itblog-su","tag-mail","tag-root","tag-ssh","tag-tail","tag-who","tag-konsol","tag-opoveschenie","tag-rut","tag-hardlink"],"_links":{"self":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":0,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/posts\/404\/revisions"}],"wp:attachment":[{"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netspider.com.ua\/index.php\/wp-json\/wp\/v2\/tags?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}