1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Did not "nvram get http_passwd" going from DD-WRT to Tomato

Discussion in 'Tomato Firmware' started by ebkac, Feb 23, 2009.

  1. ebkac

    ebkac Addicted to LI Member

    I decided to go from DD-WRT to Tomato firmware on my WRT54G, however, I didn't catch the fact I needed to get the encrypted password using "nvram get http_passwd" first. Now I have a router that I can get a login window for but I don't know what the password is.

    I am hoping somebody knows of a way to reset the password or decode the password. Any advice would be appreciated.
     
  2. spicoli

    spicoli LI Guru Member

    Push in the reset button for like a minute, and I think it'll clear nvram, dunno for sure.
     
  3. Mastec

    Mastec Network Guru Member

    If the reset doesn't work just reflash dd-wrt then get the password. Flash Tomato again and you should be able to get it working. I have been down this road in the past as well.
     
  4. Low-WRT

    Low-WRT LI Guru Member

    +1
    ...30 seconds should be plenty
    then:
    root/admin
     
  5. ebkac

    ebkac Addicted to LI Member

    Thanks for the responses so far. The reset for 30+ seconds didn't work so now I am trying to reflash the DD-WRT firmware. I poked around and found this command.

    TFTP -i 192.168.1.1 PUT c:\ddwrtstd.bin

    (I renamed the bin file to be easier to reference on the TFTP command and put it right in my root c:\ drive).

    I am getting this message: "Timout Occurred"

    Is there another way to "reflash" the router from a command line?
     
  6. RonWessels

    RonWessels Network Guru Member

    If I recall correctly, for the full "factory defaults reset" to work, you have to be holding the reset button for 30 seconds at power-on. So unplug the power to your router, hold down the reset button, plug the power back in, and release the reset button after 30 seconds or so.
     
  7. Mastec

    Mastec Network Guru Member

    The 30 second reset will not work switching from dd-wrt to Tomato. You need the encrypted password
     
  8. bripab007

    bripab007 Network Guru Member

    Just one more reason to always reset to defaults BOTH before AND after a firmware upgrade of any type.
     
  9. Planiwa

    Planiwa LI Guru Member

    Amazing how many "helpful" suggestions of "try this" ("but I don't actually *know* what I'm talking about, and after all, it's your router, your time, and your happiness"). :rolleyes:

    No one seems to have considered (suggesting) reading the *entire* paragraph in the wiki entitled

    Before the Upgrade

    here's the link:

    http://en.wikibooks.org/wiki/Tomato_Firmware#Before_the_Upgrade

    also:

    http://en.wikibooks.org/wiki/Tomato_Firmware#Buttons_.2F_LED

    (This has an error: it puts a shell on port 233 not 23.)

    Or simply reading the GUI page under Administration > Buttons/LED
     
  10. Mastec

    Mastec Network Guru Member

    Follow this and you won't fail. From Tomato FAQ

    http://www.polarcloud.com/tomatofaq#why_doesnt_my_password_work

    Why doesn't my password work?

    Make sure you're entering the username "admin" or "root". Unlike the Linksys firmware, they are required in Tomato.

    If you're upgrading from the DD-WRT firmware, telnet into the router *before* upgrading and type "nvram get http_passwd". The result will be your password in Tomato. This is necessary because of a change in DD-WRT's way of using the standard http_passwd variable.

    If you have a Buffalo router or a Linksys with a pushable Cisco logo, push the AOSS/Cisco button for at least 20 seconds, then telnet into the router on port 233. Type "nvram get http_passwd" to retrieve the password or "nvram set http_passwd='your_new_password'" followed by "nvram commit" to set it manually. Reboot the router using the command "reboot" after using this method.

    Doesn't always work
    If nothing else works, push the reset button for a few seconds to reset all of the settings. The default password after resetting is "admin".
     
  11. Toupeiro

    Toupeiro Serious Server Member

    There is another way to get this... If you run linux AND you have a backup of your configuration type: strings <backupfile.bin> find the line that says http_passwd" then copy the line directly below that. This is the same thing.
     

Share This Page