Code Monkey home page Code Monkey logo

wr30u_ssh's Introduction

wr30u_ssh

If you find any mistakes in this guide, please submit a PR 👍🏻.

forum.openwrt.org

Disclaimer:

You can potentially brick your device. I don't take responsibility for any damage caused.

Requirements

  1. A Windows computer with an Ethernet adapter and a Wireless adapter.

  2. An Ethernet cable.

  3. Python 3.10 with pycryptodome 3.17 installed.

  4. server_emulator.py from this repository.

Enabling SSH Service

  1. Configure the router.

    • Set port 1 as the WAN port.

      image-20230516190307397

    • Enable "启用与智能网关的无线配置同步".

      image-20230516190409582

    • Set the Internet connection type to "DHCP".

      image-20230516200033466

  2. Connect your computer to a available wireless network and enable Internet Connection Sharing on the wireless network adapter's Properties. From the Home networking connection drop-down menu, select Your Ethernet Adapter. This will set up a DHCP server on the Ethernet adapter and configure your computer as the gateway.

    image-20230516190718382

  3. Connect the Ethernet port of your computer to port 1 on the router. Now, the router should be able to obtain the following information and connect to the Internet.

    image-20230516200237559

  4. Run server_emulator.py and wait for the router to found the connection.

    python.exe server_emulator.py

    image-20230516195137324

  5. After waiting for about a minute, when the terminal outputs the router's information, it indicates a successful connection. Press any key to continue.

    # These commands will be executed
    echo -e 'admin\nadmin' | passwd root
    nvram set ssh_en=1 && nvram commit
    sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear && /etc/init.d/dropbear start

    image-20230516195354255

  6. Close the Python program when it finishes.

    image-20230516195434825

  7. Connect the Ethernet port of your computer to LAN port on the router. Log in to the router using your favorite ssh client and account/password: root/admin.

    image-20230516195618159

  8. Enjoy yourself!

wr30u_ssh's People

Contributors

patricialee3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.