Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Find default passwords for certain network devices UNIX
This tip will work on almost any *nix OS with curl installed. Create a text file called dfltpwd on your Desktop. Copy and paste the following into the text file:
#!/bin/bash
curl -s http://www.phenoelit.de/dpl/dpl.html | 
grep -i $1 | sed "s/<[^>]*>/ /g"
Save the file, then switch to Terminal and type these three commands (without the $):
$ cd ~/Desktop
$ sudo mv ~/Desktop/dfltpwd.txt /usr/bin/dfltpwd
sudo chmod +x /usr/bin/dfltpwd
After doing the above, test the script with something like dfltpwd "belkin". The results should be a listing of default passwords for any Belkin devices from the phenoelit.de site.

[robg adds: I don't tend to save things to /usr/bin, for fear that I overwrite something someday if I ever reinstall the OS. Instead, I have a local user bin folder on my path where such files reside.

And before the comments start, this script is not a way to "hack" networked devices. The script merely makes it easier to find the default password for a given networked device. Speaking as someone who has looked up too many of these in manuals (can you say "AirPort Express?"), this is a handy timesaver. There are quite a few sites that provide such lists, and this little shell script merely makes it easier to view the data from one such site. Also, if you happen to have any network devices that still have their default passwords, this is a good time to mention that you really should change them, because they are about as far from secure as I am from a good golfer...]
    •    
  • Currently 3.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[10,676 views]  

Find default passwords for certain network devices | 11 comments | Create New Account
Click here to return to the 'Find default passwords for certain network devices' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find default passwords for certain network devices
Authored by: merlyn on May 23, '07 08:18:21AM
Since the list is already searchable, it'd be simpler to search server-side rather than client-side. Just construct a URL like

http://phenoelit.darklab.org/cgi-bin/display.pl?SEARCH=belkin
but replace belkin with your keyword. In fact, I just added that to my Sogudi Safari Searches. Cool.

[ Reply to This | # ]
Find default passwords for certain network devices
Authored by: TypeMRT on May 23, '07 09:10:55AM

This is my favorite list for troubleshooting. I can't believe it's updated weekly (last time I checked it was in 2005!).



[ Reply to This | # ]
Find default passwords for certain network devices
Authored by: mark hunte on May 23, '07 09:41:53AM
An Applescript version.


display dialog "Enter Device name" default answer "" buttons {"Cancel", "Go"} default button 2
copy the result as list to {text_returned, button_pressed}
if button_pressed is "Go" then
	set The_shell to do shell script 
		"curl -s http://www.phenoelit.de/dpl/dpl.html |grep -i " & quoted form of text_returned 
		& " | sed \"s/<[^>]*>/ /g\"| open -f"
else
	return
end if

---
mh

[ Reply to This | # ]

Find default passwords for certain network devices
Authored by: sd on May 23, '07 09:59:37AM
The real hint is to know the URL.
I find the script of no relevance: why open Terminal and launch a script if you can just open a bookmark and scroll down to the information you need?

Hey, we are in 2007!

[ Reply to This | # ]

Find default passwords for certain network devices
Authored by: luomat on May 23, '07 11:25:31AM
For the same reason that I use the TinyURL script: it's faster than loading a whole web page just to plug in.

[ Reply to This | # ]
Find default passwords for certain network devices
Authored by: the_webmaestro on May 23, '07 01:29:51PM
I tried to make a cross-platform/browser Bookmarklet you could drag to the toolbar from the next line, but it kept trying to load the code on macosxhints.com:
<a href="javascript:q=prompt(%22Default%20Password%20For%20Which%20Device:%22,%22%22);if(q)location.href='http://phenoelit.darklab.org/cgi-bin/display.pl?SEARCH='+escape(q);">Find Default Passwords</a>
so, here's the code you'll need to enter into the 'Edit Address' field:
javascript:q=prompt(%22Default%20Password%20For%20Which%20Device:%22,%22%22);if(q)location.href='http://phenoelit.darklab.org/cgi-bin/display.pl?SEARCH='+escape(q);
Good luck!

Web Maestro Clay

---
Father of Jeremy & Elliott

[ Reply to This | # ]

easier solution
Authored by: macubergeek on May 25, '07 05:39:52PM

This hint presumes you have an internet connection. Instead just download the web page and save it to your hard drive...in your documents directory...then do a firefox bookmark to the locally saved file.



[ Reply to This | # ]
Good point
Authored by: VRic on May 30, '07 04:02:59AM

This hint will do nothing for you when setting up network devices intended to provide the Internet access you'd need to use the hint.



[ Reply to This | # ]
Find default passwords for certain network devices
Authored by: gubluntu on Jun 01, '07 06:35:04AM
Script Heavily Improved with lots'o'comment goodness for the eager newbie

#!/bin/sh
#
# This is a script to retrieve default passwords for network devices
# Original script by: gubluntu
# Modifications by: jeo

# First we want to make sure the user has supplied an argument
# If not, we tell them what the script expects with a "usage"
# line and exit

if [ $# == 0 ]; then
  echo "usage: $(basename $0) <mfg.> or <model#>"
  echo "Lists possible default passwords for network devices"
  exit 0
fi


# Here we'll set the URL.  I assume at this point that if the
# URL changes, the entire script will have to change, but still...

URL="http://www.phenoelit.de/dpl/dpl.html"


# Now let's grab the list from our URL, convert it into a
# comma seperated list, grab only lines containing commas (to
# get rid of any irrelevant info), and store it in memory
# in the form of a variable.  We'll call it "DATA".

DATA="$(curl -s $URL|sed s/"<\/TD>"/","/g | sed s/"<TD>"/""/g |grep ",")"

# From our comma seperated list, let's extract the
# column headers and store them in a variable

HEADER="$(echo "$DATA"| head -n1)"


# And now let's grab the lines that we're looking for

RESULT="$(echo "$DATA"| grep -i $1)"


# We can also say something useful if we don't find
# what we're looking for

if [ -z "$RESULT" ]; then
  echo "Sorry, couldn't find anything for \"$1\""
  exit
else

# Still part of our "if"
# And last but not least, we pipe our processed list
# (including headers) through "column" to get a pretty
# print-out.  Problem here is if your terminal isn't wide
# enough, some word-wrapping happens...  Perhaps we could
# pipe this to a text viewer that doesn't do wraping?

  echo -e "$HEADER"\\n"$RESULT" | column -ntx -s","

fi

exit 0 


[ Reply to This | # ]
Website has moved
Authored by: mag on Jul 28, '07 10:10:18AM
For reference, the webpage has moved to: http://www.phenoelit-us.org/dpl/dpl.html

[ Reply to This | # ]
Find default passwords for certain network devices
Authored by: raymondlewisjone on Jul 31, '07 07:32:34AM
Okay, so I spinned this a little:

display dialog "Enter Device name:" default answer "" buttons {"Cancel", "Search"} default button 2
copy the result as list to {text_returned, button_pressed}
if button_pressed is "Search" then
set The_shell to do shell script
"curl -s http://www.phenoelit-us.org/dpl/dpl.html |grep -i " & quoted form of text_returned
& " | sed \"s/<[^>]*>/ /g\""
set oldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to return
set theList to every text item of The_shell
set AppleScript's text item delimiters to oldDelim
repeat with i from 1 to the count of theList
display dialog ((i as text) & ". " & item i of theList) buttons {"Exit", "Next"} default button 2
if the button returned of the result is "Exit" then
exit repeat
end if
end repeat
display dialog "Finished searching!"
else
return
end if

save this as an applescript app and voila!!!!!

[ Reply to This | # ]