Telnet access on WAG54G V2

Discussion in 'Other Linksys Equipment' started by Wickus, May 5, 2005.

  1. Wickus

    Wickus Network Guru Member


    I got telnet access working on my v2 router. only problem is that nothing else is working. httpd still runs but without nvram support.

    I did the following.

    copied the files into the httpd dir under the main source.

    recompiled httpd.

    created two files in /WAG54GV2/src/router/mipsel-uclibc/target/etc/
    group and passwd

    cat /WAG54GV2/src/router/mipsel-uclibc/target/etc/group
    cat /WAG54GV2/src/router/mipsel-uclibc/target/etc/passwd

    i then created a asp page

    cat /WAG54GV2/src/router/mipsel-uclibc/target/www/testtelnetd.asp
    <h1>telnetd output</h1>
    [*] system("/usr/bin/telnetd") :
    <% system("/usr/bin/telnetd"); %>


    recompiled the img and wrote it to the router via the modified tftp client.

    once the router is up just visit the newly created link

    stop it and you should be able to telnet to the router.

    jiuaka mentioned that they using pcmd as the init.

    Linksys did confirm that is pcmd closed.

    Hope this will help u guys.

    PS. Be carefull not to FRY your router.

    Some info from the router

    # ps aux
    PID Uid Stat Command
    1 root S init
    2 root S [keventd]
    3 root S [ksoftirqd_CPU0]
    4 root S [kswapd]
    5 root S [bdflush]
    6 root S [kupdated]
    7 root S [mtdblockd]
    8 root S [mail]
    12 root S resetbutton
    28 root S cron
    30 root S httpd
    31 root S tftpd -a -s /tmp -c -l
    44 root R /usr/bin/telnetd
    47 root S -sh
    67 root S upnpd-igd br0
    98 root R ps aux

    # cat /proc/meminfo
    total: used: free: shared: buffers: cached:
    Mem: 14266368 10776576 3489792 0 1032192 3391488
    Swap: 0 0 0
    MemTotal: 13932 kB
    MemFree: 3408 kB
    MemShared: 0 kB
    Buffers: 1008 kB
    Cached: 3312 kB
    SwapCached: 0 kB
    Active: 2120 kB
    Inactive: 2864 kB
    HighTotal: 0 kB
    HighFree: 0 kB
    LowTotal: 13932 kB
    LowFree: 3408 kB
    SwapTotal: 0 kB
    SwapFree: 0 kB

    # cat /proc/cpuinfo
    processor : 0
    cpu model : MIPS 4KEc V4.8
    BogoMIPS : 149.91
    wait instruction : no
    microsecond timers : yes
    extra interrupt vector : yes
    hardware watchpoint : yes
    VCED exceptions : not available
    VCEI exceptions : not available
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice