The Geeks' Den: iPodtouch

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://www.igeekden.com and update your bookmarks.

Showing posts with label iPodtouch. Show all posts
Showing posts with label iPodtouch. Show all posts

Tuesday, November 24, 2009

How to change your iPhone’s Default SSH Password

If you jailbreak your iPhone with anything other than GeoHot’s balckra1n*, then the first thing you ABSOLUTELY MUST DO is change the default filesystem password.

*blackra1n doesn’t install SSH by default, therefore this should not be a problem if you used blackra1n to jailbreak, unless you installed the OpenSSH package from Cydia.

When you jailbreak, the filesystem’s password is set to the common password “alpine.” As people usually don’t bother changing this password after performing a jailbreak, it’s really easy for hackers to get access to any jailbroken iPhone/iPod Touch on a public network.

An Australian guy called Ashley Towns demonstrated this by circulating the first known iPhone worm, known as Ikee, which replaces your lockscreen wallpaper with an image of Rick Astley. Luckily Town’s Rickrolling is benign. He wrote the worm to demonstrate how easy it is to break into jailbroken iPhones.

Note: There is no need to follow this guide if you haven’t jailbroken your iPhone/iPod Touch.

You need:
- Jailbroken iPhone / iPod Touch
- Cydia
- MobileTerminal

    Here’s how to change the default SSH password after jailbreaking:

    1. Make sure you have Cydia or Rock installed on your jailbroken device. If you don’t already have MobileTerminal installed, launch Cydia or Rock and tap the ‘Search’ tab in the bottom navigation bar.

    SSH-PW-1

    2. Type ‘MobileTerminal’ in the search field and select the first result. Select ‘Install’ on the top right corner and tap ‘Confirm’ on the next screen. It will now install MobileTerminal on your device. Now, tap on ‘Return to Cydia’ and tap home button.

    SSH-PW-6

    3. Navigate to the newly installed ‘Terminal’ application and tap to open.

    4. In MobileTerminal, type ’su root’ and tap return. It will ask you for a password, enter ‘alpine’ and tap return again.

    5. Now, type ‘passwd’ and then tap return. Type in a new password such as ’donthackme’ and tap return. Retype the new password to confirm and then tap return one last time to change the password.

    SSH-PW-13

    6. Now, your SSH password will be changed and your device will be protected against any future hacks that use SSH to access your device.

    How to upload and read .pdf, .doc & .lit ebooks on iPhone using Stanza.

    I’ve found the best free app to upload my own ebooks is LexCycle Stanza.

    First install Stanza on your iPhone/iPodtouch, and then install Stanza Desktop on your PC (52MB) or MAC. Stanza Desktop is a desktop application used for reading ebooks (.pdf, .doc, .lit, .rtf, .txt, .azw, see all Supported Formats).

    Now open Stanza and open an ebook file by going to “File” and go down to “Open File…” and browse through the directories of your computer for the ebook. Click “Open” to finish.

    I have found that .lit files are the best for this as they provide book title information and a picture of the cover.

     

    Now that the ebook has loaded go to “Tools” and make sure “Enable Sharing” is checked.

     

    So now we launch Stanza on the iPhone/iPodtouch that’s connected to the same network as your computer. Note that you will have to be connected through a Wireless connection, see here for how to setup an adhoc Wireless network. As I have a jailbroken phone, I am using the MyWi App to create a WiFi Hotspot to connect my iPhone to my PC.

    Now in the “Library” menu hit “Shared Books” and give it a few seconds to connect to your network. Now your computer name should be on the screen; mine says “derby”, click on your computer name and give it another few seconds to scan.

    Windows will ask if you want to allow a connection between the two devices. After you’ve allowed the connection the ebook should appear on the iPhone/iPodtouch.

    Click on the ebook and will get the option to “Download” to your device.

    You can now view your titles via Cover Flow by opening the “Titles” section and tilting your device to the side.