Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 48 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
48
Dung lượng
3,9 MB
Nội dung
.Figure 9-11 mobile root • root • dottie • alpine SSH Client Software for Windows root Download at Boykma.Com HACK # 9.04 chapter 09 .Figure 9-12 .Figure 9-13 .Figure 9-14 Download at Boykma.Com [Hack #1.05] .Figure 9-15 .Figure 9-16 /private/var/root/ Download at Boykma.Com HACK # 9.04 .Figure 9-17 /private/var/root/ .Figure 9-18 →→ssh root@ Download at Boykma.Com .Figure 9-19 .Figure 9-20 .Figure 9-21 Download at Boykma.Com HACK # 9.04 For a gentle introduction to the Unix shell used by Mac OS X, see d Learning Unix for Mac OS X Tiger, by Dave Taylor (O’Reilly). [Hack #11.06] make • • /etc/hosts dps17-2:~ $ sudo pico /etc/hosts find missing direCtories And files cd• cd /var/ mobile/Media/ ls • pwd• • find / -name "<file name>" Download at Boykma.Com .Figure 9-22 /etc/hosts dps17-2:~ $ ping iphone PING iphone (192.168.22.99): 56 data bytes 64 bytes from 192.168.22.99: icmp_seq=0 ttl=64 time=328.536 ms 64 bytes from 192.168.22.99: icmp_seq=1 ttl=64 time=85.387 ms ^C iphone ping statistics 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 85.387/206.962/328.536/121.575 ms dps17-2:~ $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/Users/dstolarz/.ssh/id_rsa): <press enter> Enter passphrase (empty for no passphrase): <press enter> Enter same passphrase again: <press enter> Your identification has been saved in /Users/dstolarz/.ssh/id_rsa. Your public key has been saved in /Users/dstolarz/.ssh/id_rsa.pub. The key fingerprint is: f1:d7:1a:aa:d9:f3:7c:1b:66:17:05:05:a7:ca:ce:90 dstolarz@dps17-2.local The key's randomart image is: + [ RSA 2048] + | ooo| | + | | . . .| | o o o .| | S E = | | * o .| | . + + .| | + o.o | | o .oo | + + dps17-2:~ dstolarz$ ssh root@iphone mkdir -p .ssh root@iphone's password: alpine Download at Boykma.Com HACK # 9.04 dps17-2:~ $ cat .ssh/id_rsa.pub | ssh root@iphone 'cat >> .ssh/authorized_keys' root@iphone's password: alpine dps17-2:~ $ ssh root@iphone dps-3G:~ root# → dps-3G:~ # ssh iphonehacks@perceptdev.com The authenticity of host 'perceptdev.com (208.97.133.135)' can't be established. RSA key fingerprint is da:86:84:d0:c0:66:20:17:58:da:b8:86:a1:3b:1f:72. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'perceptdev.com,208.97.133.135' (RSA) to the list of known hosts. Password: <type password here> Linux perceptdev 2.6.24.2-grsec-p4-peon-1.1.2-grsec #1 SMP Wed Feb 20 15:30:29 PST 2008 i686 GNU/Linux [perceptdev]$ exit logout Connection to perceptdev.com closed. perceptdev.com dps17:~ $ ssh root@iphone dps-3G:~ # ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/var/root/.ssh/id_rsa): <press enter> Enter passphrase (empty for no passphrase): <press enter> Enter same passphrase again: <press enter> Your identification has been saved in /var/root/.ssh/id_rsa. Your public key has been saved in /var/root/.ssh/id_rsa.pub. The key fingerprint is: e6:68:35:95:ac:7e:d0:e4:27:5a:08:e2:01:4b:1b:59 root@dps-3G The key's randomart image is: + [ RSA 2048] + | +oE | | = . . | | o o . = | | . o . B | | . S = . | | * = o | | o + . | | . . | + + Download at Boykma.Com dps-3G:~ # ssh iphonehacks@perceptdev.com mkdir -p .ssh Password: dps-3G:~ # cat .ssh/id_rsa.pub | ssh iphonehacks@perceptdev.com \ 'cat >> .ssh/authorized_keys' Password: tsXE9Z3J dps-3G:~ # ssh iphonehacks@perceptdev.com Last login: Sun Feb 15 13:34:27 2009 from 24.24.166.171 Linux perceptdev 2.6.24.2-grsec-p4-peon-1.1.2-grsec #1 SMP Wed Feb 20 15:30:29 PST 2008 i686 GNU/Linux __ [perceptdev]$ Test /private/ var/mobile/Library/ dps-3G:~ # ls /private/var/mobile/Library/ AddressBook/ Carrier\ Bundles/ Maps/ SafeHarbor/ Application\ Support/ ConfigurationProfiles/ MobilePhone/ Stocks/ BossPrefs/ Cookies/ Notes/ Voicemail/ Caches/ Cycorder/ Operator\ Bundle.bundle@ Weather/ Calendar/ Keyboard/ Preferences/ WebClips/ CallHistory/ Logs/ SMS/ WebKit/ Carrier\ Bundle.bundle@ Mail/ Safari/ YouTube/ dps-3G:~ # ls -l /private/var/mobile/Library/AddressBook/ total 1512 -rw-r r 1 mobile mobile 1119232 Feb 14 18:09 AddressBook.sqlitedb -rw-r 1 mobile mobile 423936 Feb 15 12:16 AddressBookImages.sqlitedb perceptdev.com drwx 5 iphonehacks pg233143 4096 2009-02-10 15:43 Maildir dps-3G:~ # scp /private/var/mobile/Library/AddressBook/ \ AddressBook.sqlitedbiphonehacks@perceptdev.com:~/ AddressBook.sqlitedb 100% 1093KB 218.6KB/s 00:05 dps-3G:~ # ssh iphonehacks@perceptdev.com ls -l total 1108 -rw-r r 1 iphonehacks pg233143 1119232 2009-02-15 15:34 AddressBook.sqlitedb dr-xr-x 2 iphonehacks dhapache 4096 2009-02-10 15:24 logs drwx 5 iphonehacks pg233143 4096 2009-02-10 15:43 Maildir Download at Boykma.Com HACK # 9.05 [Hack #11.02] [Hack #11.03] rootmobile root mobile [Hack #11.01]mobile mobile 9.05:HACK Download at Boykma.Com [...]... measurement, and media management to the conspicuously missing ability to cut and paste, and even a BitTorrent client, we round out the capabilities of the iPhone with an eye to the future Hack 10.01: Create Music with the iPhone and iPod touch A variety of programs lets you create and play music on your iPhone The iPhone is many things to many people, and for many it is a musical instrument Its multitouch... worried if the ping doesn’t work: some ISPs and routers have network filters that disable pings Just try another service that you know is running, like SSH Figure 9-52 Ping results for the new domain name dps17-2:~ dstolarz$ ping iphonehacks.pozone.org PING iphonehacks.pozone.org (24.24. 166 .171): 56 data bytes 64 bytes from 24.24. 166 .171: icmp_seq=0 ttl =64 time=0.944 ms 64 bytes from 24.24. 166 .171: icmp_seq=1... T-shirts, let them mingle with the customers and handle transactions on their iPhone, and run your DMV like an Apple store! Figure 9-29 Using TN3270 Figure 9-30 Using TN5250 2 36 iphone hacks Download at Boykma.Com HACK # 9. 06 Hack 9. 06: Mount the iPhone Filesystem on Your Mac with AppleTalk or SSH View your entire iPhone filesystem in Finder! discussed several ways to get files to and from your iPhone But... EDGE/3G Network to Your Laptop Bring your iPhone s anywhere-Internet to your laptop with iPhone Modem or PdaNet For some time, cell phone users have been able to tether their phones to their laptops and use them as Bluetooth modems, utilizing their data plan to power their laptop’s browsing For a time, this ability was not available on iPhones People were unable to use their mighty EDGE or 3G for nonphone... given the iPhone the address 192. 168 .22.99 on our network so that it will always have the same address when we try to mount it With most iPhones, as of this writing, the default username/password combinations for the root and mobile users are root/alpine and mobile/alpine [Hack #9.04] Enter these settings, along with the part of the iPhone filesystem you’d like to mount in path, by clicking the + sign... Run Applications in the Background Keep your apps going with Backgrounder Only a handful of Apple’s standard apps will keep updating when they aren’t open—things like SMS, Mail, and the alarms This means that apps like AIM and Yahoo!Messenger will function and receive IMs only when the phone is unlocked (screen on) and the app is running (on screen) This almost defeats the purpose of their convenient... Jailbroken apps changed this There are a few tethering apps to be found on Cydia The two covered here will be iPhone Modem (www.iphonemodem.com) and PdaNet (www.junefabrics.com) For either one, download them from Cydia iPhone Modem also has a desktop app for you to use that streamlines the process of tethering and that works on either Mac or Windows To connect your Mac to the PdaNet, you’ll need to make...Figure 9-23 TouchTerm with dimmed-out keyboard Figure 9-24 TouchTerm (landscape) Figure 9-25 Double-stroke gesture You can tap twice to hide and show the keyboard, tap the left side of the screen to bring up various key palettes (Figure 9- 26) , and tap the right side of the screen to bring up autocompletion features, 234 iphone hacks Download at Boykma.Com HACK # 9.05 so... of them use the subject line and the body of the email as the cover sheet for your fax They also vary in what documents they support In our testing, Faxaway was a very inexpensive option ($12/year), had excellent support, and supports a wide range of documents for fax printing Receiving Faxes If you have a lot of business on the go that involves having to print out documents, sign them, and fax them... iPhone (it will need its own unique email address, separate from your main account, so have one handy) Open the Settings panel, and look for the “Protect My Updates” checkbox It’s towards the bottom of the page, just above the Save button Check this and click Save With protected updates, only the Twitter users that you approve will see the updates for this iPhone- only account (Is it just you? You and . $ ping iphone PING iphone (192. 168 .22.99): 56 data bytes 64 bytes from 192. 168 .22.99: icmp_seq=0 ttl =64 time=328.5 36 ms 64 bytes from 192. 168 .22.99: icmp_seq=1 ttl =64 time=85.387 ms ^C iphone. # ssh iphonehacks@perceptdev.com The authenticity of host 'perceptdev.com (208.97.133.135)' can't be established. RSA key fingerprint is da: 86: 84:d0:c0 :66 :20:17:58:da:b8: 86: a1:3b:1f:72. Are. tsXE9Z3J dps-3G:~ # ssh iphonehacks@perceptdev.com Last login: Sun Feb 15 13:34:27 2009 from 24.24. 166 .171 Linux perceptdev 2 .6. 24.2-grsec-p4-peon-1.1.2-grsec #1 SMP Wed Feb 20 15:30:29 PST 2008 i6 86 GNU/Linux