{"id":12,"date":"2008-05-23T17:49:26","date_gmt":"2008-05-23T13:49:26","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=12"},"modified":"2008-12-04T16:24:59","modified_gmt":"2008-12-04T12:24:59","slug":"who-has-socket","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=12","title":{"rendered":"\u041a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u043f\u043e\u0440\u0442?"},"content":{"rendered":"<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0432 <strong>Solaris<\/strong> \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 <strong>\u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443<\/strong>. \u041a\u0430\u043a \u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 &#8212; <a title=\"whohassocket.sh\" href=\"http:\/\/www.opennet.ru\/base\/sys\/sol_sockstat.txt.html\" target=\"_blank\">whohassocket.sh<\/a> . \u0412\u044b\u0432\u043e\u0434\u0438\u043b \u0432\u0441\u0435 \u0432 \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u043c \u0432\u0438\u0434\u0435 ;) \u041f\u043e\u0442\u043e\u043c \u043f\u043e\u043f\u0430\u043b\u0438\u0441\u044c \u0434\u0432\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u0430 \u043d\u0430 sun.com &#8212; \u043a\u0440\u0438\u0432\u044b\u0435  (\u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b \u0432 \u043d\u043e\u043c\u0435\u0440\u0435 \u043f\u043e\u0440\u0442\u0430 ): <a title=\"\u043f\u0435\u0440\u0432\u044b\u0439\" href=\"http:\/\/www.sun.com\/bigadmin\/scripts\/submittedScripts\/port2moni.txt\" target=\"_blank\">\u043f\u0435\u0440\u0432\u044b\u0439<\/a>, <a title=\"\u0432\u0442\u043e\u0440\u043e\u0439\" href=\"http:\/\/blogs.sun.com\/japod\/resource\/portHolder.sh\" target=\"_blank\">\u0432\u0442\u043e\u0440\u043e\u0439<\/a><\/p>\n<p>\u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c ;)<br \/>\n<!--more--><br \/>\n\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 <strong>\u0442\u0438\u043f \u0441\u043e\u043a\u0435\u0442\u0430<\/strong>, <strong>\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/strong>, <strong>\u043f\u043e\u0440\u0442<\/strong>, <strong>pid<\/strong>, <strong>userid<\/strong>, <strong>\u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/strong>. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043b\u0438\u0431\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u043b\u0438\u0431\u043e \u043f\u043e pid, \u043b\u0438\u0431\u043e \u043f\u043e userid-\u0443, \u043b\u0438\u0431\u043e \u043f\u043e \u043f\u043e\u0440\u0442\u0443.<\/p>\n<p>\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre># whohassocket.sh port 25\r\n\r\nSOCK_TYPE PROTOCOL IP PORT PID USER COMMAND\r\nsockname: AF_INET 0.0.0.0 25 1505 root \/usr\/lib\/sendmail -bd -q15m\r\nsockname: AF_INET6 :: 25 1505 root \/usr\/lib\/sendmail -bd -q15m\r\nsockname: AF_INET 0.0.0.0 587 1505 root \/usr\/lib\/sendmail -bd -q15m<\/pre>\n<pre># \/install\/Sun\/Pkgs\/whohassocket.sh port 22\r\nSOCK_TYPE       PROTOCOL        IP      PORT    PID     USER    COMMAND\r\nsockname:       AF_INET6        ::      22       3004     root \/usr\/lib\/ssh\/sshd\r\nsockname:       AF_INET6        ::ffff:10.1.4.3 22      13719     root \/usr\/lib\/ssh\/sshd\r\npeername:       AF_INET6        ::ffff:10.3.19.48       2077    13719     root \/usr\/lib\/ssh\/sshd\r\nsockname:       AF_INET6        ::ffff:10.1.4.3 22       3517     root \/usr\/lib\/ssh\/sshd\r\npeername:       AF_INET6        ::ffff:10.3.19.48       1126     3517     root \/usr\/lib\/ssh\/sshd\r\nsockname:       AF_INET6        ::ffff:10.1.4.3 22       5474 admin \/usr\/lib\/ssh\/sshd\r\npeername:       AF_INET6        ::ffff:10.3.19.45       3738     5474 admin \/usr\/lib\/ssh\/sshd<\/pre>\n<pre>\u041a\u0430\u0447\u0430\u0435\u043c <a href=\"https:\/\/www.unixpin.com\/wp-content\/uploads\/2008\/05\/whohassocket.sh\">whohassocket<\/a><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0432 Solaris \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430 \u043f\u043e\u0440\u0442\u0443. \u041a\u0430\u043a \u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 &#8212; whohassocket.sh . \u0412\u044b\u0432\u043e\u0434\u0438\u043b \u0432\u0441\u0435 \u0432 \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u043c \u0432\u0438\u0434\u0435 ;) \u041f\u043e\u0442\u043e\u043c \u043f\u043e\u043f\u0430\u043b\u0438\u0441\u044c \u0434\u0432\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u0430 \u043d\u0430 sun.com &#8212; \u043a\u0440\u0438\u0432\u044b\u0435 (\u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b \u0432 \u043d\u043e\u043c\u0435\u0440\u0435 \u043f\u043e\u0440\u0442\u0430 ): \u043f\u0435\u0440\u0432\u044b\u0439, \u0432\u0442\u043e\u0440\u043e\u0439 \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c ;)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[8,280,26,408,409,413,302,31,1017,303,207,32,1016,414,410,406,415,405,412,309,208,407,411],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-shell","category-solaris","tag-bash","tag-download","tag-hardware-sun","tag-listen","tag-listener","tag-pid","tag-proc","tag-process","tag-shell","tag-ps","tag-script","tag-socket","tag-solaris","tag-userid","tag-whohassocket","tag-406","tag-415","tag-405","tag-412","tag-309","tag-208","tag-407","tag-411"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":2,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}