{
    "version": "https:\/\/jsonfeed.org\/version\/1.1",
    "title": "Копытов Иван: заметки с тегом результат",
    "_rss_description": "Блог ленивого сисадмина",
    "_rss_language": "ru",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/kini24.ru\/tags\/rezultat\/",
    "feed_url": "https:\/\/kini24.ru\/tags\/rezultat\/json\/",
    "icon": false,
    "authors": [
        {
            "name": "Копытов Иван",
            "url": "https:\/\/kini24.ru\/",
            "avatar": false
        }
    ],
    "items": [
        {
            "id": "151",
            "url": "https:\/\/kini24.ru\/all\/dostup-k-samsung-smart-tv\/",
            "title": "Доступ к Samsung Smart TV",
            "content_html": "<h3>Проба пера<\/h3>\n<p>Когда мне становится скучно, в голову приходят самые разные мысли...<br \/>\nВ этот раз в голове мелькнула мысль просканировать телевизор на открытые порты. Результат был положительным:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">Starting Nmap 5.51 ( http:\/\/nmap.org ) at 2018-01-21 20:41 +07\nNmap scan report for 192.168.1.7\nHost is up (0.0026s latency).\nNot shown: 991 closed ports\nPORT      STATE SERVICE\n7676\/tcp  open  imqbrokerd\n8001\/tcp  open  vcom-tunnel\n8002\/tcp  open  teradataordbms\n8080\/tcp  open  http-proxy\n9999\/tcp  open  abyss\n32768\/tcp open  filenet-tms\n32769\/tcp open  filenet-rpc\n32770\/tcp open  sometimes-rpc3\n32771\/tcp open  sometimes-rpc5\n\nNmap done: 1 IP address (1 host up) scanned in 0.25 seconds<\/code><\/pre><p>Номера портов, по большей части не знакомы, но 8001, 8002, 8080 и 9999 наводят на определенные мысли. Пробуем получить информацию по ним...<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ curl -v http:\/\/192.168.1.7:7676\n* Rebuilt URL to: http:\/\/192.168.1.7:7676\/\n*   Trying 192.168.1.7...\n* TCP_NODELAY set\n* Connected to 192.168.1.7 (192.168.1.7) port 7676 (#0)\n&gt; GET \/ HTTP\/1.1\n&gt; Host: 192.168.1.7:7676\n&gt; User-Agent: curl\/7.57.0-DEV\n&gt; Accept: *\/*\n&gt; \n* HTTP 1.0, assume close after body\n&lt; HTTP\/1.0 400 Bad Request \n&lt; CONTENT-TYPE: text\/xml; charset=&quot;utf-8&quot; \n&lt; SERVER: UPnP\/1.1 Samsung AllShare Server\/1.0 \n&lt; CONTENT-LENGTH: 417 \n&lt; \n* Closing connection 0\n&lt;?xml version=&quot;1.0&quot;?&gt;&lt;s:Envelope xmlns:s=&quot;http:\/\/schemas.xmlsoap.org\/soap\/envelope\/&quot; s:encodingStyle=&quot;http:\/\/schemas.xmlsoap.org\/soap\/encoding\/&quot;&gt;&lt;s:Body&gt;&lt;s:Fault&gt;&lt;faultcode&gt;s:Client&lt;\/faultcode&gt;&lt;faultstring&gt;UPnPError&lt;\/faultstring&gt;&lt;detail&gt;&lt;UPnPError xmlns=&quot;urn:schemas-upnp-org:control-1-0&quot;&gt;&lt;errorCode&gt;402&lt;\/errorCode&gt;&lt;errorDescription&gt;Invalid Args&lt;\/errorDescription&gt;&lt;\/UPnPError&gt;&lt;\/detail&gt;&lt;\/s:Fault&gt;&lt;\/s:Body&gt;&lt;\/s:Envelope&gt;<\/code><\/pre><p>Пустые ответы приводить не буду, только те, по которым получен какой-либо результат. Проверяем порт 8001:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ curl -v http:\/\/192.168.1.7:8001\n* Rebuilt URL to: http:\/\/192.168.1.7:8001\/\n*   Trying 192.168.1.7...\n* TCP_NODELAY set\n* Connected to 192.168.1.7 (192.168.1.7) port 8001 (#0)\n&gt; GET \/ HTTP\/1.1\n&gt; Host: 192.168.1.7:8001\n&gt; User-Agent: curl\/7.57.0-DEV\n&gt; Accept: *\/*\n&gt; \n* HTTP 1.0, assume close after body\n&lt; HTTP\/1.0 401 Unauthorized\n&lt; access-control-allow-origin: *\n&lt; content-length: 29\n&lt; \n* Closing connection 0\n&lt;html&gt;&lt;body&gt;401&lt;\/body&gt;&lt;\/html&gt;<\/code><\/pre><p>На очереди 8002:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ curl -v https:\/\/192.168.1.7:8002\n* Rebuilt URL to: https:\/\/192.168.1.7:8002\/\n*   Trying 192.168.1.7...\n* TCP_NODELAY set\n* Connected to 192.168.1.7 (192.168.1.7) port 8002 (#0)\n* ALPN, offering h2\n* ALPN, offering http\/1.1\n* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH\n* successfully set certificate verify locations:\n*   CAfile: \/usr\/share\/ca-certificates\/ca-bundle.crt\n  CApath: none\n* TLSv1.2 (OUT), TLS header, Certificate Status (22):\n* TLSv1.2 (OUT), TLS handshake, Client hello (1):\n* TLSv1.2 (IN), TLS handshake, Server hello (2):\n* TLSv1.2 (IN), TLS handshake, Certificate (11):\n* TLSv1.2 (OUT), TLS alert, Server hello (2):\n* SSL certificate problem: self signed certificate in certificate chain\n* stopped the pause stream!\n* Closing connection 0\ncurl: (60) SSL certificate problem: self signed certificate in certificate chain\nMore details here: https:\/\/curl.haxx.se\/docs\/sslcerts.html\n\ncurl failed to verify the legitimacy of the server and therefore could not\nestablish a secure connection to it. To learn more about this situation and\nhow to fix it, please visit the web page mentioned above.<\/code><\/pre><p>Теперь очередь порта 8080:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ curl -v http:\/\/192.168.1.7:8080\n* Rebuilt URL to: http:\/\/192.168.1.7:8080\/\n*   Trying 192.168.1.7...\n* TCP_NODELAY set\n* Connected to 192.168.1.7 (192.168.1.7) port 8080 (#0)\n&gt; GET \/ HTTP\/1.1\n&gt; Host: 192.168.1.7:8080\n&gt; User-Agent: curl\/7.57.0-DEV\n&gt; Accept: *\/*\n&gt; \n&lt; HTTP\/1.1 404 Not Found\n&lt; Access-Control-Allow-Origin: *\n&lt; Access-Control-Allow-Headers: Content-Type\n&lt; Content-Type: text\/html\n&lt; Content-Length: 345\n&lt; Date: Sun, 21 Jan 2018 04:14:36 GMT\n&lt; Server: WebServer\n&lt; \n&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;\n&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot;\n         &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;\n &lt;head&gt;\n  &lt;title&gt;404 - Not Found&lt;\/title&gt;\n &lt;\/head&gt;\n &lt;body&gt;\n  &lt;h1&gt;404 - Not Found&lt;\/h1&gt;\n &lt;\/body&gt;\n&lt;\/html&gt;\n* Connection #0 to host 192.168.1.7 left intact<\/code><\/pre><p>Если использовать SSL, то ответ тоже не заставит себя ждать:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ curl -v https:\/\/192.168.1.7:8080\n* Rebuilt URL to: https:\/\/192.168.1.7:8080\/\n*   Trying 192.168.1.7...\n* TCP_NODELAY set\n* Connected to 192.168.1.7 (192.168.1.7) port 8080 (#0)\n* ALPN, offering h2\n* ALPN, offering http\/1.1\n* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH\n* successfully set certificate verify locations:\n*   CAfile: \/usr\/share\/ca-certificates\/ca-bundle.crt\n  CApath: none\n* TLSv1.2 (OUT), TLS header, Certificate Status (22):\n* TLSv1.2 (OUT), TLS handshake, Client hello (1):\n* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192.168.1.7:8080 \n* stopped the pause stream!\n* Closing connection 0\ncurl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192.168.1.7:8080<\/code><\/pre><p>И, наконец, 9999:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ curl -v https:\/\/192.168.1.7:9999\n* Rebuilt URL to: https:\/\/192.168.1.7:9999\/\n*   Trying 192.168.1.7...\n* TCP_NODELAY set\n* Connected to 192.168.1.7 (192.168.1.7) port 9999 (#0)\n* ALPN, offering h2\n* ALPN, offering http\/1.1\n* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH\n* successfully set certificate verify locations:\n*   CAfile: \/usr\/share\/ca-certificates\/ca-bundle.crt\n  CApath: none\n* TLSv1.2 (OUT), TLS header, Certificate Status (22):\n* TLSv1.2 (OUT), TLS handshake, Client hello (1):\n\n* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192.168.1.7:9999 \n* stopped the pause stream!\n* Closing connection 0\ncurl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192.168.1.7:9999<\/code><\/pre><p>Судя по всему, на порту 7676 «висит» какой-то UPNP. Порты 8002 и 9999 обмениваются данными через SSL, 8080 похож на веб-сервер, а 8001 требует авторизацию.<br \/>\nЕсли открыть ТВ в браузере на порту 8002, то можно получить визуальные данные о сертификате. В принципе, самое интересное, что можно из него вычленить — срок действия в 20 лет и что сертификат является самоподписанным.<br \/>\nПорывшись в интернете, понял, что на эту тему достаточно мало материала. Впрочем, сначала нужно просмотреть SamsungSmartSDK, упомянутый в сертификате. Возможно, что там найдется какая-то дополнительная информация.<br \/>\nКстати, теоретически, есть возможность включить ТВ с ипользованием технологии Wake-On-LAN. Стандартный способ, видимо, не проходит — по крайне мере на «magic packet» он не отозвался. Но пример кода, реализующего эту возможность, я встретил.<\/p>\n",
            "date_published": "2018-01-21T21:00:33+07:00",
            "date_modified": "2018-01-21T23:39:38+07:00",
            "tags": [
                "порт",
                "результат",
                "сканирование",
                "телевизор"
            ],
            "_date_published_rfc2822": "Sun, 21 Jan 2018 21:00:33 +0700",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "151",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "highlight\/highlight.js",
                    "highlight\/highlight.css"
                ],
                "og_images": []
            }
        }
    ],
    "_e2_version": 4134,
    "_e2_ua_string": "Aegea 11.3 (v4134)"
}