找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 3571|回复: 3

操控更多,进入iPhone操作系统的Shell后台的方式已经被分析出来

[复制链接]
发表于 2007-7-8 20:15 | 显示全部楼层 |阅读模式
iPhone采用了专门的操作系统.然后用SHELL呈现给用户一个漂亮的界面.如果能够进入到这个SHELL后面的话.可以对系统进行更多了解..
5 X* M- f: x. @* K, a5 m( N" _. V# u$ N& i+ h# h/ A+ A1 \. g
目前这种方法已经被人分析出来了:4 h+ o# z' g( P4 R
由于iPhone采用了与iPod一样的底部数据线脚定义,所以可用串行控制的方式来进入SHELL的里面.* ?) x9 y6 B/ E& R3 c
在线脚的第21脚和第11脚之间接上一只6.8K的电阻,然后在recovery模式下输入以下指令 - X; `/ }/ k5 P( R
setenv debug-uarts 1
+ g4 K9 y, i+ g5 R* [saveenv6 D# P7 _0 e5 n6 x' ]2 w7 F
reboot8 h9 C, ~" W+ r: ?: \$ n

4 i: R, v1 C, D& w机器会自动重启.然后就进入指令状态了.) H1 x* c7 X' Q; n1 B
) Q& t# R1 d! e6 D9 d2 n) T2 E9 n
                                iPhone SERIAL HACKED, FULL INTERACTIVE SHELL                                                           Your friends at #iPhone made a major breakthrough this morning." ]8 S# ^  U3 o- o
we got a serial console working, here is how the serial has the same pinouts as iPod serial use a 6.8kish resistor from pin 21 to gnd tie pin 11-sergnd to the real ground use iphone interface to send the following commands in recovery mode:  z: l6 E% p: a
setenv debug-uarts 1
) o8 r9 |& ^) u" P! o1 h: K) a2 ]8 @saveenv
7 i1 Y. w% v, X2 l% wreboot
+ ^9 Q# u' [2 p' K
# L  r8 g0 i9 ^& @+ t* P4 e- Gthat should work6 z/ E- g3 j% ?& Y% F* U5 y, x
1 g0 F: U, }5 P+ m# |+ R8 K
IT GIVES YOU A FULL INTERACTIVE SHELL
. A) A, }6 e  `: I$ r( hI REPEAT, A FULL INTERACTIVE SHELL
, k6 N4 l7 G# G5 H: v  _" L2 [5 g/ z
; _" k- R. @8 A8 @4 @2 u2 OThe command list is: http://iphone.fiveforty.net/geohot/cmdlist.txt( s; h+ P  V0 y+ m2 y1 c; z* w5 n
1 L! A, G7 U+ W6 [
You need a level convertor, like the max 232 to make this work3 _/ D- L5 n" e+ x* O* C/ b
- T9 {; [1 K5 k8 ]& k. X$ y
DIGG: http://digg.com/apple/iPhone_serial_...l_shell_access
& j$ ~0 Z) H0 i
& J1 u" N- K% ^7 o8 b# O  I~geohot7 Q6 C! d6 ^7 c1 e( U
                                                                                                                                                                                                                                        Last edited by geohot : 07-06-2007 at 10:40 PM.                                                   
; {1 g# u+ ~; \; @' j+ o4 m2 A4 r
http://www.hackint0sh.org/forum/showthread.php?p=7989#post7989
/ }) q+ e1 C6 i. S: g
iphone-shell.jpg
- [. c/ C  U$ z6 ^- f
 楼主| 发表于 2007-7-8 20:18 | 显示全部楼层

iPhone 后台指令清单

现在你可以用指令来控制很多东西罗..
1 ~9 r& F+ {9 v, `& p
command list:
3 G, [/ E! Q8 G' `        help           this list
" H) t) n" D5 ?, N        script         run script at specific address2 W! ]7 D4 R' g" O) z
        go             jump directly to address
6 I! [- }8 N- m, a8 c        bootx          boot a kernel cache at specified address0 P% o6 z7 t# B% `( v
        diags          boot into diagnostics (if present)
( i* U# d# k  E2 }7 m+ a- i. E( C        tsys           boot into tsys (if present)
( Y2 A9 w3 `3 s- V5 p        bdev           block device commands
: ^. R0 \/ }5 m; v' N4 ^& H        image          flash image inspection
' s, U0 v" D) T8 G/ U- O        fs             file system commands7 u0 G0 Q) _6 `0 a2 E& g
        fsboot         try to boot kernel at /kernelcache# b: h' i2 v$ Z7 E. ^
        devicetree     create a device tree from the specified address
0 J% k! B+ @7 a9 y( _& r        ramdisk        create a ramdisk from the specified address0 p# z- S. B( |) G
        tftp           tftp via ethernet to/from device
$ v+ e6 }0 P# P  z4 T4 V0 d# ^7 l        eload          tftp via ethernet from hardcoded install server' D0 D' l/ N9 j' `
        halt           halt the system (good for JTAG)! S! U1 H9 a, h! V- p' ^4 `
        reboot         reboot the device
7 \! W3 ^7 ~) P9 w  I$ O        poweroff       power off the device& ?+ R, ~( O3 ^. a
        md             memory display - 32bit: V* ^* m4 m6 ]
        mdh            memory display - 16bit- A2 t6 j+ ?5 M  j
        mdb            memory display - 8bit
# v1 i5 L# |7 Z+ e% I" y! W! H        mw             memory write - 32bit
# \/ Z9 [& L- _& k- {: k- }4 e        mwh            memory write - 16bit
0 R6 ?. a/ Y0 j6 a4 Q. {        mwb            memory write - 8bit# d) P& Q2 f" x% a1 ^! d6 G
        mws            memory write - string
4 Q+ H# h  s6 y( X3 l5 n        crc            POSIX 1003.2 checksum of memory
5 [5 W, @" d0 ]! t# O        task           examine system tasks
6 J+ n) ~* m# k7 d6 n5 o3 V& _        printenv       print one or all environment variables
. _* F5 w& l" @# m/ \! X        setenv         set an environment variable5 E! D. M' i; Y. j- |
        clearenv       clear all environment variables3 H# K$ o5 A' f" g, u9 u
        saveenv        save current environment to flash, K: e8 z; r( S4 X+ C; Z
        run            use contents of environment var as script
$ H8 a3 O! d: Z8 H1 B        bgcolor        set the display background color# h: t( {) s( H& I6 F$ o
        setpicture     set the image on the display: N4 }6 k5 X) H- H* m5 [- H
        iic            iic read/write
7 o$ l8 n+ W7 a" i        radio          Manipulate the radio board.6 C& \$ d1 A! |- U% V5 I: q1 v
        setbusclock    Set bus clock to the given frequency in Hz.
8 G2 I, f. Y  X# u6 B3 d3 U3 c        setcorevoltage Set core voltage to the given voltage in mV.3 s4 g& f  J% H/ e& q
        syscfg         flash SysCfg inspection
, `- G3 j( x: X  ^" ^9 f! B7 }        charge         Manage the charger chip.1 e4 B7 a4 G' v( B4 ?+ p& n3 B* z
        powernvram     Access Power NVRAM.
* ?3 D! I) I$ ?) a4 A5 G! h        usb            run a USB command
( ~- n2 P2 L- r4 V" {% O        nand           nand flash routines+ ^, N' I! I. f1 f) s
        chunk          chunk a file$ B7 k/ S0 B# c

: V$ J; {" W) Y0 N! T% J  T: A7/6/2007
! a4 A; f& C/ I
http://iphone.fiveforty.net/geohot/cmdlist.txt
 楼主| 发表于 2007-7-8 20:36 | 显示全部楼层

iPod线脚定义

收藏一下..这个肯定会有需要的时候罗
* u2 F0 o; _" o6 k8 ?2 z6 ]( i6 j8 `$ E" f$ c: h, J
Apple iPod dock interface pinoutconnector wiring scheme
used in 3rd and later generation iPods for charging,connecting to a PC via USB or Firewire, to a stereo via line-out, to aserial device (controlled via the Apple Accessory Protocol). Thisconnector exists in all Apple iPod MP3 player (iPod 1G, 2G, 3G, 4G, 5G,Nano)3 r: a4 L8 l% h+ a! _; s9 J% t

- s* A9 [+ l6 |4 W0 Z+ x. P% u2 s# q9 s
ipod_30p.gif
4 _$ h) C2 x- \& J7 x; c30pin线脚图  at the player ( white side up)& a# q$ J% f- W3 y. ?6 g
5 n1 V! @. V; g0 y7 z1 h" {

' L  r7 Z" r- X+ P) }* D
PinSignalDescription
1GNDGround (-), internaly connected with Pin 2 on iPod motherboard
2GNDAudio & Video ground (-), internaly connected with Pin 2 on iPod motherboard
3RightLine Out - R (+) (Audio output, right channel)
4LeftLine Out - L(+) (Audio output, left channel)
5Right InLine In - R (+)
6Left InLine In - L (+)
8Video OutComposite video output (only when slideshow active on iPod Photo)
9S-Video Chrominance outputfor iPod Color, Photo  only
10S-Video Luminance outputfor iPod Color, Photo only
11GNDSerial GND
12Txipod sending line, Serial TxD
13Rxipod receiving line, Serial RxD
15GNDGround (-), internaly connected with pin 16 on iPod motherboard
16GNDUSB GND (-), internaly connected with pin 15 on iPod motherboard
183.3V3.3V Power (+)
7 t" C; \3 `: \8 i0 d9 L/ O6 u* AStepped up to provide +5 VDC to USB on iPod Camera Connector.   If iPod is put to sleep while Camera Connector is present, +5 VDC at this pin slowly drains back to 0 VDC.
19,20+12VFirewire Power 12 VDC (+)
21Accessory Indicator/Serial enableDifferent resistances indicate accessory type:
! e; s  ?; s/ J/ b$ Z! ?         1kOhm - iPod docking station, beeps when connected
; |) j3 J" y3 w4 B! V, G8 A         10kOhm - Takes some iPods into photo import mode9 ^) G+ ?- f' d( G% Y
         500kOhm - related to serial communication / used to enable serial communications                Used in Dension Ice Link Plus car interface; m  T6 k1 c7 c- ~5 H
1MOhm - Belkin auto adaptor, iPod shuts down automatically when powerdisconnected Connecting pin 21 to ground with a 1MOhm resistor doesstop the ipod when power (i.e. Firewire-12V) is cut. Looks to be thatwhen this pin is grounded it closes a switch so that on loss of powerthe Ipod shuts off. Dock has the same Resister.
22TPA (-)FireWire Data TPA (-)
235 VDC (+)USB Power 5 VDC (+)
24TPA (+)FireWire Data TPA (+)
25Data (-)USB Data (-)
26TPB (-)FireWire Data TPB (-)
27Data (+)USB Data (+)
! R% P4 |) J9 Q% A+ mPins 25 and 27 may be used in different manner.  To force       the iPod 5G to charge in any case, when 'USB Power 5 VDC' (pin 23)       is fed, 25 must be connected to 5V through a 10kOhm resistor, and 27 must be connected to        the Ground (for example: pin 1) with a 10kOhm resistor.
28TPB (+)FireWire Data TPB (+)
29,30GNDFireWire Ground (-)
Back side of dock connector;
8 }: k) E8 ~* E2 M 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
5 n& N2 G5 J6 l7 F, J 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29Pins 1,2 connected on motherboard.
0 `8 n+ G# w! Y1 @$ IPins 15,16 connected on motherboard.
& k! h. Q9 A+ ~* ^) U: sPins 19,20 connected on motherboard.
. E0 o+ M; r# J) TPins 29,30 connected on motherboard.
  I: u9 Q! [3 D9 q" kIf you disassemble the original apple-ipod-dock-connector-cable andlook at the connector itself, on the back side, where it is soldered,you can see the number 1 and 30 (e.g. pin 1 and 30). In thisdescription NUMBERING is INVERSED: pin 1 is pin 30 and pin 30 is pin 2,so, don't look at numbers on connector.
$ _( q: \; a9 a6 t2 F+ SThe remote control, iTalk and other serial devices use AppleAccessory Protocol for communication with iPOD. This protocol wasintroduced with the 3rd generation iPods, and is also compatible withthe 4th generation iPods and mini iPods. The connections uses astandard 8N1 (one startbit 8 data bits 1 Stopbit) serial protocol,19200 baud (higher rates up to 57600 also possible, but speed fasterthan 38400 may cause problems with large amounts of data), delay of 12microseconds inserted between end of the stopbit and the beginning ofthe next startbit (also working without this delay)." I4 w( X( Q; {5 _% }/ u3 [
Electrical: high +3,3V low 0V
& X$ g- [; N8 n- rdefault line state: high. Codes used for communication with peripherals are here
8 i1 d7 R# \2 l& D  x9 n This device may be connected to the firewire computer port by straight cable (TPB+/-, TPA +/- shoulde be twisted pairs in cable)4 N* q# G- B& L- k. E
9 `" U9 b2 g" h" d' F, _+ w/ B
http://pinouts.ru/Devices/ipod_pinout.shtml
发表于 2007-7-8 20:53 | 显示全部楼层
ni bi a
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-12-22 23:42 , Processed in 0.325313 second(s), 18 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表