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

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: 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 |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!"
end if

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

[ Reply to This | # ]