Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
toh:d-link:d-link_dch-m225_a1 [2019/10/03 12:34] tmomastoh:d-link:dch-m225_a1 [2022/09/26 20:35] – Telnet Access humaita
Line 183: Line 183:
  
 This procedure is intended to be used for installing a factory image, but may also work to install an OpenWRT image (has not been tested). This procedure is intended to be used for installing a factory image, but may also work to install an OpenWRT image (has not been tested).
 +
 +===== Telnet Access =====
 +
 +Some versions or revisions of this router seem to include "Spotify Connect", and this allows a local attacker to execute arbitrary OS commands as root, see https://gist.github.com/jezzaaa/38c752d0a129576b2cc523ce6325050f.
 +
 +Some versions or revisions of this router do not include "Spotify Connect". However, telnetd can by enabled by flashing a modified firmware:
 +
 +Step 1: Install the required tools on your computer
 +<code>
 +sudo apt-get update
 +sudo apt-get -y install git build-essential zlib1g-dev liblzma-dev python-magic zip unzip
 +
 +mkdir -p ~/fmk
 +cd ~/fmk
 +git clone https://code.google.com/p/firmware-mod-kit/
 +cd firmware-mod-kit/src
 +./configure
 +make
 +</code>
 +
 +Step 2: Download the firmware (you should find it through Google)
 +
 +Step 3: Unpack, modify firmware to enable telnetd, then repack firmware
 +<code>
 +# Extract the trx file
 +~/fmk/firmware-mod-kit/extract-firmware.sh DCH-M225_REVA_FIRMWARE_105b01.bin 
 +
 +# Replace "killall telnetd" with "telnetd &" on S80telnetd.sh
 +sudo vi ~/fmk/rootfs/etc/init0.d/S80telnetd.sh
 +
 +# Create the new firmware archive
 +~/fmk/firmware-mod-kit/build-firmware.sh
 +</code>
 +
 +Flash the new firmare and you should be able to telnet into the device without any password.
  
 ===== Ralink Firmware ===== ===== Ralink Firmware =====
Line 222: Line 257:
 ---- datatemplatelist dttpllist ---- ---- datatemplatelist dttpllist ----
 template: meta:template_datatemplatelist template: meta:template_datatemplatelist
-cols    : Brand, Model, Versions, Device Type, Availability, Supported Since Rev_url, Supported since Rel, Supported current Rel, Unsupported, Instruction Set, Sub Instruction Set, Bootloader, Platform, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN 2.4GHz, WLAN 5.0GHz, WLAN Hardwares, WLAN Comments_, Detachable Antennas_, USB ports_, SATA ports_, Comments USB SATA ports_, Serial, JTAG, LED count, Button count, Power supply, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Comments_+cols    : Brand, Model, Versions, Device Type, Availability, Supported Since Commit_git, Supported since Rel, Supported current Rel, Unsupported, Instruction Set, Sub Instruction Set, Bootloader, Platform, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN 2.4GHz, WLAN 5.0GHz, WLAN Hardwares, WLAN Comments_, Detachable Antennas_, USB ports_, SATA ports_, Comments USB SATA ports_, Serial, JTAG, LED count, Button count, Power supply, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Comments_
 filter  : Brand=D-Link filter  : Brand=D-Link
 filter  : Model=DCH-M225 filter  : Model=DCH-M225
Line 230: Line 265:
  
 ==== Opening the case ==== ==== Opening the case ====
 +
 +{{page>meta:infobox:high_voltage&noheader&nofooter&noeditbtn}}
 +
 **Note:** Opening the case exposes lethal voltage. Do not plug in to power without adequately protecting you and others from electric shock.\\ **Note:** Opening the case exposes lethal voltage. Do not plug in to power without adequately protecting you and others from electric shock.\\
 **Note:** This will void your warranty!\\ **Note:** This will void your warranty!\\
Line 1079: Line 1117:
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>MT7620A 8flash 64ram 802.11bgn}}+{{tag>MT7620A 8flash 64ram 802.11bgn mains_powered}}
  • Last modified: 2024/02/12 11:13
  • by 127.0.0.1