{"id":197314,"date":"2013-10-13T01:31:03","date_gmt":"2013-10-12T21:31:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=197314"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=197314","title":{"rendered":"<span class=\"post_title\">\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 D-Link<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/079\/6d4\/f6f\/0796d4f6fbf4df2bf160ca7a2816119e.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0430\u043b\u0435 <a href=\"http:\/\/www.devttys0.com\/blog\/\">devttys0.com<\/a> \u043d\u0435\u043a\u0442\u043e Craig Heffner \u2013 \u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433\u0430 \u2013 \u0432\u044b\u043b\u043e\u0436\u0438\u043b <a href=\"http:\/\/www.devttys0.com\/2013\/10\/reverse-engineering-a-d-link-backdoor\/\">\u0441\u0442\u0430\u0442\u044c\u044e-\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435<\/a> \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 (<a href=\"http:\/\/habrahabr.ru\/post\/183314\/\">\u0443\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438<\/a>) \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 <b>D-Link<\/b>. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0435 \u0434\u043b\u044f <b>DIR-100 revA<\/b>, \u043d\u043e, \u043f\u043e \u0435\u0433\u043e \u043c\u043d\u0435\u043d\u0438\u044e, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0438\u0439:<\/p>\n<ul>\n<li>DIR-100<\/li>\n<li>DI-524<\/li>\n<li>DI-524UP<\/li>\n<li>DI-604S<\/li>\n<li>DI-604UP<\/li>\n<li>DI-604+<\/li>\n<li>TM-G5240<\/li>\n<li>Planex BRL-04UR<\/li>\n<li>Planex BRL-04CW<\/li>\n<\/ul>\n<p>  \u041a\u043e\u0440\u043e\u0442\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d User-Agent \u043a\u0430\u043a <b>\u00abxmlset_roodkcableoj28840ybtide\u00bb<\/b>, \u0442\u043e \u0432\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0435\u0431-\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0430\u0432\u0442\u043e\u0440 \u0441\u043a\u0430\u0447\u0430\u043b \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 <a href=\"ftp:\/\/ftp.dlink.eu\/Products\/dir\/dir-100\/driver_software\/DIR-100_fw_reva_113_ALL_en_20110915.zip\">firmware v1.13<\/a> \u0434\u043b\u044f DIR-100 (\u0434\u043b\u044f \u0435\u0433\u043e DI-524 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0430 \u0436\u0435 \u0441\u0430\u043c\u0430\u044f). \u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0448\u0451\u043b\u0441\u044f \u043f\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0443 \u0441\u0432\u043e\u0435\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <a href=\"http:\/\/code.google.com\/p\/binwalk\/\">binwalk<\/a> \u0438 \u0432\u044b\u043d\u0443\u043b SquashFS \u0441 \u0441\u0438\u0442\u0435\u043c\u043e\u0439, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0437\u044f\u043b \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 <b>\/bin\/webs<\/b> \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b \u0435\u0433\u043e \u0432 IDA:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/348\/3a2\/ac9\/3483a2ac95d900849f77e6af6cbbfb09.png\" alt=\"image\"\/><\/p>\n<p>  \u0421\u0443\u0434\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c, <b>\/bin\/webs<\/b> \u044d\u0442\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <b>thttpd<\/b>. \u0410\u0432\u0442\u043e\u0440\u044b \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u2014 Alphanetworks, \u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 D-Link, \u0432\u0441\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 <b>alpha<\/b>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ff0\/c89\/fbf\/ff0c89fbf67f02ecffcfe8992ab30a1c.png\" alt=\"image\"\/><\/p>\n<h4>alpha_auth_check<\/h4>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439. \u041f\u0440\u0438 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0432\u044b\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432 \u043d\u0435\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u2013 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c <b>0xD0<\/b> \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 <b>http_request_t<\/b> \u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043e\u0439 <b>\u00abxmlset_roodkcableoj28840ybtide\u00bb<\/b>. \u0415\u0441\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442, \u0442\u043e <b>alpha_auth_check<\/b> \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 1 (\u0443\u0441\u043f\u0435\u0448\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f).<\/p>\n<p>  \u0410\u0432\u0442\u043e\u0440 \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u043b \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 xmlset_roodkcableoj28840ybtide \u0438 \u043d\u0430\u0448\u0451\u043b \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u0443\u043c\u0435: <a href=\"http:\/\/forum.codenet.ru\/q58748\">http:\/\/forum.codenet.ru\/q58748<\/a>. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f 2010 \u0433\u043e\u0434\u043e\u043c, \u043d\u043e \u043f\u0440\u043e \u0442\u043e, \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u044d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430, \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b.<\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, Craig \u043d\u0430\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u043f\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044e <b>0xD0<\/b> \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <b>http_request_t<\/b> \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <b>httpd_parse_request<\/b>.<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/42a\/e72\/e09\/42ae72e09a4a6b82560c925c74a3a31d.png\" alt=\"image\"\/><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/713\/1e1\/4a4\/7131e14a4b70eef9153b8cf0c496409e.png\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043e\u0431\u0438\u0440\u0430\u044f \u0432\u0441\u044e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432\u043e\u0435\u0434\u0438\u043d\u043e, \u0430\u0432\u0442\u043e\u0440 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>alpha_auth_check<\/b>:  <\/p>\n<pre><code class=\"cpp\">#define AUTH_OK 1 #define AUTH_FAIL -1  int alpha_auth_check(struct http_request_t *request) {     if(strstr(request-&gt;url, &quot;graphic\/&quot;) ||        strstr(request-&gt;url, &quot;public\/&quot;) ||        strcmp(request-&gt;user_agent, &quot;xmlset_roodkcableoj28840ybtide&quot;) == 0)     {         return AUTH_OK;     }     else     {         \/\/ These arguments are probably user\/pass or session info         if(check_login(request-&gt;0xC, request-&gt;0xE0) != 0)         {             return AUTH_OK;         }     }      return AUTH_FAIL; } <\/code><\/pre>\n<blockquote><p>You stay classy, D-Link.<\/p><\/blockquote>\n<p>      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/197314\/\"> http:\/\/habrahabr.ru\/post\/197314\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/079\/6d4\/f6f\/0796d4f6fbf4df2bf160ca7a2816119e.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0430\u043b\u0435 <a href=\"http:\/\/www.devttys0.com\/blog\/\">devttys0.com<\/a> \u043d\u0435\u043a\u0442\u043e Craig Heffner \u2013 \u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433\u0430 \u2013 \u0432\u044b\u043b\u043e\u0436\u0438\u043b <a href=\"http:\/\/www.devttys0.com\/2013\/10\/reverse-engineering-a-d-link-backdoor\/\">\u0441\u0442\u0430\u0442\u044c\u044e-\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435<\/a> \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 (<a href=\"http:\/\/habrahabr.ru\/post\/183314\/\">\u0443\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438<\/a>) \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 <b>D-Link<\/b>. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0435 \u0434\u043b\u044f <b>DIR-100 revA<\/b>, \u043d\u043e, \u043f\u043e \u0435\u0433\u043e \u043c\u043d\u0435\u043d\u0438\u044e, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0438\u0439:<\/p>\n<ul>\n<li>DIR-100<\/li>\n<li>DI-524<\/li>\n<li>DI-524UP<\/li>\n<li>DI-604S<\/li>\n<li>DI-604UP<\/li>\n<li>DI-604+<\/li>\n<li>TM-G5240<\/li>\n<li>Planex BRL-04UR<\/li>\n<li>Planex BRL-04CW<\/li>\n<\/ul>\n<p>  \u041a\u043e\u0440\u043e\u0442\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d User-Agent \u043a\u0430\u043a <b>\u00abxmlset_roodkcableoj28840ybtide\u00bb<\/b>, \u0442\u043e \u0432\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0435\u0431-\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.  <\/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-197314","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197314","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=197314"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197314\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}