{"id":86,"date":"2016-09-15T22:09:32","date_gmt":"2016-09-15T14:09:32","guid":{"rendered":"http:\/\/192.168.1.20\/?p=86"},"modified":"2016-09-15T22:10:17","modified_gmt":"2016-09-15T14:10:17","slug":"hg255ddrcom","status":"publish","type":"post","link":"http:\/\/alextop.top\/?p=86","title":{"rendered":"\u5728HG255d\u4e0a\u5b9e\u73b0drcom\u81ea\u52a8\u62e8\u53f7\u5171\u4eab\u8def\u7531\u5668"},"content":{"rendered":"<p>\u4f9d\u636e\u6211\u4eec\u4e0a\u6b21\u7684\u514d\u62c6\u5237uboot\u5e76\u5237\u5165\u56fa\u4ef6\u6559\u7a0b\u4e4b\u540e\uff0c\u53c8\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86\u5728pandorabox\u56fa\u4ef6\u4e0a\u7684python\u8fd0\u884cdr.com\u767b\u5f55\u811a\u672c\uff0c\u9996\u5148\u8fd8\u662f\u8f6f\u4ef6\u51c6\u5907\uff0cdrcom\u7248\u672c\u5728\u767b\u9646\u5668\u53f3\u4e0a\u89d2<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-88 aligncenter\" src=\"http:\/\/sxfu.tk\/wp-content\/uploads\/2016\/09\/\u6355\u83b7-2-300x269.jpg\" alt=\"{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e6{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8d{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}95{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e8{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8e{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}b7\" width=\"300\" height=\"269\" srcset=\"http:\/\/alextop.top\/wp-content\/uploads\/2016\/09\/\u6355\u83b7-2-300x269.jpg 300w, http:\/\/alextop.top\/wp-content\/uploads\/2016\/09\/\u6355\u83b7-2.jpg 393w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><span style=\"color: #ff0000;\"><strong>\uff08\u6ce8\u610f\u6211\u7684drcom\u5ba2\u6237\u7aef\u7248\u672c\u4e3a5.2.0\uff08D\uff09 \u56fa\u4ef6\u4e0a\u7684python\u7248\u672c\u4e3a2.7\u6211\u662fwin10\u7cfb\u7edf \uff09<\/strong><\/span><\/p>\n<p>\u4e00\u3001\u8f6f\u4ef6\u51c6\u5907\uff08\u6253\u5305\u4e0b\u8f7d\u5730\u5740\uff1a\u00a0 \u00a0\uff09<\/p>\n<p>1\u3001putty_V0.63.0.0.43510830.exe<\/p>\n<p>2\u3001python-2.7.12rc1.amd64.msi\uff08window\u7248\u7528\u4e8e\u5b9e\u9a8cpy\u811a\u672c\u662f\u5426\u8fd0\u884c\u6b63\u5e38\uff09<\/p>\n<p>3\u3001UltraEdit\uff08\u7528\u4e8e\u4fdd\u5b58\u6587\u4ef6\u7684uinx\u6362\u884c\u7b26\u683c\u5f0f\uff09<\/p>\n<p>4\u3001WinSCP_5.9.0.6786_Setup.exe\uff08\u7528\u4e8e\u4e0a\u4f20\u811a\u672c\uff09<\/p>\n<p>5\u3001Wireshark-win64-2.2.0.exe\uff08window\u4e0b\u6293\u5305\uff09<\/p>\n<p>6\u3001PandoraBox-ralink-hg255d-r333-20141228.bin\uff08\u6f58\u591a\u62c9\u56fa\u4ef6\uff09<\/p>\n<p>7\u3001tftp2.exe\uff08\u4e0a\u4f20\u56fa\u4ef6\u5237\u673a\u5de5\u5177\uff09<\/p>\n<p>\u4e8c\u3001\u5237\u5165\u56fa\u4ef6\uff08<strong>\u7535\u4fe1\u539f\u7248uboot\u65e0\u6cd5\u5237\u5165\u6b64\u56fa\u4ef6<\/strong>\uff09<\/p>\n<p>1\u3001\u8bbe\u7f6e\u672c\u5730\u8fde\u63a5\uff1aip\u4e3a192.168.1.100\u5b50\u7f51\u63a9\u7801\u4e3a255.255.255.0<\/p>\n<p>2\u3001\u6253\u5f00tftp2.exe\u00a0 ip\u4e3a192.168.1.1\u00a0\u00a0\u00a0 \u5bc6\u7801\u7559\u7a7a\u00a0\u00a0 \u9009\u62e9\u56fa\u4ef6PandoraBox-ralink-hg255d-r333-20141228.bin<\/p>\n<p>3\u3001\u6309\u4f4f\u8def\u7531\u5668wps\u3001wlan\u3001reset\u4efb\u4e00\u952e\u5f00\u673a\uff0c\u6b64\u65f6\u8fc5\u901f\u70b9\u51fbtftp2\u4e2d\u7684Upgrade\u6309\u94ae\u6b64\u65f6lan\u706f\u72c2\u95ea<\/p>\n<p>4\u3001\u7b49\u5f855\u5206\u949f\u5de6\u53f3\u6b64\u65f6\u7535\u6e90\u706f\u548cwifi\u706f\u4eae\u5219\u53ef\u4ee5\u5c1d\u8bd5\u767b\u9646192.168.1.1\uff08\u5982\u679c\u6253\u4e0d\u5f00\u8bf7\u66f4\u6362\u6d4f\u89c8\u5668\u6253\u5f00\uff09<br \/>\n\u4e09\u3001\u5b89\u88c5\u6d4b\u8bd5\u8def\u7531\u5668\u73af\u5883<\/p>\n<p>1\u3001\u8fdb\u5165PandoraBox\u7ba1\u7406\u754c\u9762\u9009\u62e9\uff0c\u7cfb\u7edf\u300b\u7ba1\u7406\uff0c\u5728\u201c\u5141\u8bb8\u8fdc\u7a0b\u4e3b\u673a\u8fde\u63a5\u5230\u672c\u5730ssh\u8f6c\u53d1\u7aef\u53e3\u201d\u524d\u6253\u52fe\uff0c\u70b9\u51fb\u4fdd\u5b58\u5e76\u5e94\u7528<\/p>\n<p>2\u3001\u7528putty\u8fde\u63a5192.168.1.1\u9ed8\u8ba4\u7aef\u53e3\u5373\u53ef\uff0c\u8f93\u5165\u9ed8\u8ba4\u7ba1\u7406\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5373\u53ef\u767b\u9646\u8def\u7531\u5668<\/p>\n<p>3\u3001\u4f9d\u6b21\u8f93\u51653\u884c\u4ee3\u7801\uff08\u53ea\u8981\u4e0d\u62a5\u9519\u6ca1\u6709error\u5c31\u884c\uff09<\/p>\n<p># opkg install python-mini<\/p>\n<p># opkg install python<\/p>\n<p>#python<\/p>\n<p>4\u3001\u5982\u679c\u663e\u793apython\u7684\u7248\u672c\u53f7\u5c31\u8bc1\u660e\u73af\u5883\u5df2\u7ecf\u642d\u597d<\/p>\n<p>\u56db\u3001win\u4e0b\u6293\u5305\u548c\u8f93\u51fa\u811a\u672c<\/p>\n<p>\u4e0b\u9762\u5c31\u662f\u91cd\u5934\u620f\u4e86\uff0c\u4f7f\u7528\u7684Dr.com\u8bbe\u7f6e\u76f8\u5173Python\u811a\u672c\u6e90\u4ee3\u7801\u89c1\uff1ahttps:\/\/github.com\/drcoms\/drcom-generic\u3002\u4f7f\u7528\u8bf4\u660e\u89c1\uff1ahttps:\/\/github.com\/drcoms\/drcom-generic\/wiki\u3002\u652f\u6301D\u3001P\u3001X\u4e09\u79cd\u7248\u672c\u7684Dr.Com\u6a21\u62df\u3002\u4e0b\u9762\u4ee5\u6211\u6240\u5728\u6821\u56ed\u7f51\u7684D\u7248\u4ecb\u7ecd\u914d\u7f6e\u6d41\u7a0b\u3002<\/p>\n<p>\u4f60\u8fd8\u5f97\u786e\u8ba4\u4f60\u7684\u7535\u8111\u4e0a\u4e5f\u5b89\u88c5\u4e86Python\u73af\u5883\uff0c\u624d\u80fd\u8fdb\u884c\u540e\u9762\u7684\u6709\u5173\u8c03\u8bd5\u3002\u7136\u540e\u4e0b\u8f7d\u4e24\u4e2apython\u811a\u672c\u5907\u7528\uff1a<br \/>\n1\u3001D\u7248Dr.Com\u914d\u7f6e\u751f\u6210\u5668\u811a\u672c\uff1ahttps:\/\/raw.githubusercontent.com\/drcoms\/generic\/master\/drcom_d_config.py<br \/>\n2\u3001Dr.Com\u767b\u5f55\u8ba4\u8bc1\u811a\u672c\uff1ahttps:\/\/raw.githubusercontent.com\/drcoms\/generic\/master\/latest-wired.py<\/p>\n<p>\u5b89\u88c5\u5e76\u4f7f\u7528wireshark\u5728\u5b98\u65b9\u5ba2\u6237\u7aef\u767b\u5f55\u524d\u5f00\u59cb\u622a\u5305\uff0c\u505a\u4e00\u6b21\u5b8c\u6574\u7684\u622a\u5305\u52a8\u4f5c\u7136\u540e\u767b\u51fa\uff0c\u4fdd\u5b58\u4e3awireshark\u622a\u5305\u6587\u4ef6 , \u6bd4\u5982dr.pcapng\uff08\u6269\u5c55\u540d\u4e3apcapng\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-90 aligncenter\" src=\"http:\/\/sxfu.tk\/wp-content\/uploads\/2016\/09\/\u93b9\u66e1\u5e4f01-300x232.png\" alt=\"{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e9{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8e{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}b9{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e6{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}9b{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}a1{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e5{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}b9{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}8f01\" width=\"300\" height=\"232\" srcset=\"http:\/\/alextop.top\/wp-content\/uploads\/2016\/09\/\u93b9\u66e1\u5e4f01-300x232.png 300w, http:\/\/alextop.top\/wp-content\/uploads\/2016\/09\/\u93b9\u66e1\u5e4f01.png 752w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u5c06\u4e0b\u8f7d\u7684d\u7248\u914d\u7f6e\u751f\u6210\u5668\u4e0e\u7b2c\u4e00\u6b65\u7684\u622a\u5305\u6587\u4ef6\u653e\u5230\u540c\u4e00\u4e2a\u76ee\u5f55\u4e0b\uff0c\u5e76\u4e14\u5c06\u751f\u6210\u5668\u811a\u672cdrcom_d_config.py\u4e2dfilename = &#8216;xxx&#8217;\u8fd9\u4e00\u884c\u4e2d\u7684xxx\u6539\u4e3a\u521a\u624d\u4fdd\u5b58\u7684\u622a\u5305\u6587\u4ef6\u540ddr.pcapng\u3002<\/p>\n<p>\u8fdb\u5165\u547d\u4ee4\u63d0\u793a\u7b26\uff08\u6216shell\uff09\u8fdb\u5165drcom_d_config.py\u6240\u5728\u76ee\u5f55\uff0c\u8f93\u5165\uff1a<br \/>\npython drcom_d_config.py &gt; config.txt<\/p>\n<p>&nbsp;<\/p>\n<p>\uff08cmd\u77e5\u8bc6\u8bb2\u89e3\uff1a<\/p>\n<p>\u8f93\u5165\u201c\u76d8\u7b26\uff1a\u201d\u5373\u53ef\u5207\u6362\u78c1\u76d8<\/p>\n<p>\u8f93\u5165\u201ccd\u7a7a\u683c\u6587\u4ef6\u5939\u540d\u201d\u5373\u53ef\u8fdb\u5165\u6587\u4ef6\u5939\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u4e2a\u811a\u672c\u7a0b\u5e8f\u81ea\u52a8\u4ece\u622a\u5305\u6587\u4ef6\u4e2d\u63d0\u53d6\u51faDr.Com\u914d\u7f6e\u6240\u9700\u7684\u53c2\u6570\uff0c\u4fdd\u5b58\u5728config.txt\u6587\u4ef6\u4e2d\u3002\u73b0\u5728\u6253\u5f00config.txt\uff0c\u5c06\u7c7b\u4f3c<br \/>\nserver = &#8216;172.17.254.6&#8217;<br \/>\nusername=&#8217;hahahahaha&#8217;<br \/>\npassword=&#8221;<br \/>\nCONTROLCHECKSTATUS = &#8216;\\x20&#8217;<br \/>\nADAPTERNUM = &#8216;\\x04&#8217;<br \/>\nhost_ip = &#8216;\\x0a\\x68\\x82\\x03&#8217;<br \/>\nIPDOG = &#8216;\\x01&#8217;<br \/>\nhost_name = &#8216;DRCOMFUCKER&#8217;<br \/>\nPRIMARY_DNS = &#8216;\\xd3\\x53\\x30\\x21&#8217;<br \/>\ndhcp_server = &#8216;\\xd3\\x53\\x37\\x2a&#8217;<br \/>\nAUTH_VERSION = &#8216;\\x0f\\x00&#8217;<br \/>\nmac = 0x28d244090e15<br \/>\nhost_os = &#8216;WINDIAOS&#8217;<br \/>\nKEEP_ALIVE_VERSION = &#8216;\\x0f\\x27&#8217;<\/p>\n<p>\u7684\u6bb5\u843d\u62f7\u8d1d\u51fa\u6765\uff0c\u65b0\u5efa\u4e00\u4e2adrcom.conf\u6587\u4ef6\uff08\u9700\u8981\u4f7f\u7528UltraEdit\u6587\u672c\u7f16\u8f91\u5668\u4ee5\u4fdd\u5b58Unix\u6362\u884c\u7b26\u7684\u6587\u4ef6\uff09\u5907\u7528\uff0c\u540c\u65f6\u8986\u76d6Dr.Com\u767b\u5f55\u8ba4\u8bc1\u811a\u672clatest-wired.py\u4e2d\u4ece\u00a0\u00a0# CONFIG\u00a0\u00a0\u5230\u00a0\u00a0# CONFIG_END\u00a0\u00a0\u4e2d\u95f4\u7684\u90e8\u5206\uff0c\u6ce8\u610f\u81ea\u884c\u4fee\u6539password\u7684\u503c\u4e3a\u4f60\u5b9e\u9645\u7684Dr.Com\u767b\u5f55\u5bc6\u7801\u3002<\/p>\n<p>\u4e0b\u9762\u5148\u5728\u7535\u8111\u4e0a\u6d4b\u8bd5\u4e0blatest-wired.py\u662f\u5426\u771f\u7684\u80fd\u53d6\u4ee3Dr.Com\u5b98\u65b9\u5ba2\u6237\u7aef\u8f6f\u4ef6\u5b8c\u6210\u767b\u5f55\u8ba4\u8bc1\u3002\u6d4b\u8bd5\u524d\u8981\u5148\u4fee\u6539latest-wired.py\u4e2dIS_TEST = False\u8fd9\u4e00\u884c\uff0c\u5c06\u8d4b\u503c\u6539\u4e3aTrue\u3002\u5728\u7535\u8111\u4e0a\u8fd0\u884clatest-wired.py\u770b\u662f\u5426\u80fd\u4e0a\u7f51\uff0c\u80fd\u4e0a\u7f51\u5c31\u6210\u529f\u4e86\uff0c\u53ea\u8981\u628a\u8fd9\u4e2a\u811a\u672c\u653e\u5230\u8def\u7531\u5668\u4e0a\u8fd0\u884c\u5c31\u53ef\u4ee5\u629b\u5f00\u7535\u8111\u7531\u8def\u7531\u5668\u81ea\u884c\u5b8c\u6210\u6821\u56ed\u7f51\u63a5\u5165\u4e86\u3002<\/p>\n<p>\u7528WinSCP\u4ee5ftp\u6216scp\u767b\u5f55PandoraBox\uff0c\u5c06latest-wired.py\u4e0a\u4f20\u5230\u8def\u7531\u5668\u7684\/usr\/bin\/\u91cc\uff0c\u6539\u540d\u4e3adrcom\uff08\u8bb0\u5f97\u6539\u56deIS_TEST = False\uff09\uff0c\u5e76\u4e14\u7ed9\u4e88\u6267\u884c\u6743\u9650\uff08chmod +x \/usr\/bin\/drcom.py\uff09\u3002\u5c06\u524d\u9762\u521b\u5efa\u597d\u7684drcom.conf\u4e0a\u4f20\u5230\u8def\u7531\u5668\u7684\/etc\/\u76ee\u5f55\u3002\u7f16\u8f91\u8def\u7531\u5668\u4e0a\u7684\/etc\/rc.local\uff0c\u5728<\/p>\n<p>exit 0<\/p>\n<p>\u524d\u52a0\u5165\u4e00\u884c<\/p>\n<p>python\/usr\/bin\/drcom<\/p>\n<p>\u73b0\u5728\u91cd\u65b0\u542f\u52a8\u4e00\u4e0bHG255d\u8bd5\u8bd5\uff0c\u8def\u7531\u5668\u80fd\u81ea\u884c\u5b8c\u6210\u6821\u56ed\u7f51Dr.Com\u767b\u5f55\u8ba4\u8bc1\uff0c\u65e0\u9700\u5f00\u7535\u8111\u5c31\u53ef\u4ee5\u7528\u4f60\u7684\u624b\u673a\u3001Pad\u7b49\u65e0\u7ebf\u8bbe\u5907\u901a\u8fc7\u8def\u7531\u5668\u4e0a\u7f51\u51b2\u6d6a\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f9d\u636e\u6211\u4eec\u4e0a\u6b21\u7684\u514d\u62c6\u5237uboot&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/86"}],"collection":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":0,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"wp:attachment":[{"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}