随着最近iOS5.1越狱在即,国内又冒出众多“国产越狱黑客”。今天在cnbeta看见一则新闻题曰《[图]国内高一黑客:iOS 5.1完美越狱已搞定》,在评论中已有网友对其真实性进行了否定,这让我不禁想起iOS5.0.1越狱前威锋论坛上某“国产大神”号称自己破解A5芯片了5.0.1的系统并且放出视频。本人闲极蛋疼,使用sencha touch模拟了cydia的加载过程,对骗子的伎俩进行了揭穿,并拍成了视频放在网上。
现在公布造假代码。。
1
<!
DOCTYPE html
>
2
<
html
>
3
<
head
>
4
<
title
>Cydia
</
title
>
5
<
link
rel
="apple-touch-icon"
href
="icon@2x.png"
>
6
<
meta
name
="apple-mobile-web-app-capable"
content
="yes"
/>
7
<
script
src
="touch/sencha-touch.js"
type
="text/javascript"
></
script
>
8
<
link
href
="touch/resources/css/apple.css"
rel
="stylesheet"
type
="text/css"
/>
9
<
style
type
="text/css"
>
10
body
11
{
12
background
:
url(Default@2x.png)
;
13
background-size
:
100%
;
14
}
15
.bg, .card1
16
{
17
background
:
url(bg.png)
;
18
background-size
:
100%
;
19
}
20
21
.x-tab img.Cydia, .x-button img.x-icon-mask.Cydia
22
{
23
-webkit-mask-image
:
url('home-Selected@2x.png')
;
24
}
25
26
.x-tab img.Sections, .x-button img.x-icon-mask.Sections
27
{
28
-webkit-mask-image
:
url('install@2x.png')
;
29
}
30
31
.x-tab img.Changes, .x-button img.x-icon-mask.Changes
32
{
33
-webkit-mask-image
:
url('changes@2x.png')
;
34
}
35
36
.x-tab img.Manage, .x-button img.x-icon-mask.Manage
37
{
38
-webkit-mask-image
:
url('manage@2x.png')
;
39
}
40
41
.x-tab img.Searcher, .x-button img.x-icon-mask.Searcher
42
{
43
-webkit-mask-image
:
url('search@2x.png')
;
44
}
45
46
.darkToolbar
47
{
48
background-image
:
-webkit-linear-gradient(#373737,#1e1e1e 50%,#111111 51%,#040404)
;
49
}
50
51
.darkToolbar .x-panel-body
52
{
53
color
:
#fff
;
54
padding-left
:
25px
;
55
margin-left
:
10px
;
56
background
:
url(loadingDark.gif) no-repeat center left
;
57
}
58
</
style
>
59
<
script
type
="text/javascript"
>
60
Ext.setup({
61
onReady:
function
() {
62
var
panel
=
new
Ext.Panel({
63
fullscreen:
true
,
64
glossOnIcon:
false
,
65
dockedItems: [{ xtype:
'
toolbar
'
, title:
''
}],
66
layout:
'
fit
'
,
67
items: [
68
new
Ext.Panel({
69
layout:
'
fit
'
,
70
items: [{
71
layout: {
72
type:
'
vbox
'
,
73
align:
'
center
'
,
74
pack:
'
center
'
75
},
76
items: [
77
{
78
html:
'
<span style="line-height:22px; font-size:16px; background:url(loading.gif) no-repeat left center; padding-left:28px;color:#666;text-shadow:#fff 1px 1px 1px">正在载入...</span>
'
79
}
80
]
81
}]
82
})
83
]
84
});
85
86
87
setTimeout(
function
() {
88
panel.destroy();
89
90
var
infoPanel
=
new
Ext.Toolbar(
91
{
92
id:
'
loadBar
'
,
93
dock:
'
top
'
,
94
cls:
'
darkToolbar
'
,
95
items: [
96
{
97
id:
'
InfoLabel
'
,
98
xtype:
'
panel
'
,
99
html:
'
Updating Database
'
,
100
width:
220
101
},
102
{ xtype:
'
spacer
'
},
103
{
104
text:
'
取消
'
,
105
ui:
'
action
'
106
}
107
]
108
}
109
);
110
111
var
tabpanel
=
new
Ext.TabPanel({
112
tabBar: {
113
dock:
'
bottom
'
,
114
layout: {
115
pack:
'
center
'
116
}
117
},
118
119
fullscreen:
true
,
120
cardSwitchAnimation: {
121
type:
'
slide
'
,
122
cover:
true
123
},
124
125
defaults: {
126
scroll:
'
vertical
'
127
},
128
129
dockedItems: [
130
infoPanel,
131
{
132
xtype:
'
toolbar
'
,
133
dock:
'
top
'
,
134
title:
"
主页
"
,
135
items: [{
136
text:
'
关于
'
137
},
138
{ xtype:
'
spacer
'
},
139
{
140
text:
'
重新加载
'
,
141
handler:
function
(sender, event) {
142
window.location
=
window.location;
143
}
144
}]
145
}],
146
147
items: [{
148
title:
'
Cydia
'
,
149
html:
'
<img src="screen.png" width="320" />
'
,
150
iconCls:
'
Cydia
'
,
151
cls:
'
card1
'
152
}, {
153
title:
'
分类
'
,
154
html:
'
<h1>Favorites Card</h1>
'
,
155
iconCls:
'
Sections
'
,
156
cls:
'
card2
'
157
}, {
158
title:
'
变更
'
,
159
id:
'
tab3
'
,
160
html:
'
<h1>Downloads Card</h1>
'
,
161
badgeText:
'
1
'
,
162
cls:
'
card3
'
,
163
iconCls:
'
Changes
'
164
}, {
165
title:
'
管理
'
,
166
html:
'
<h1>Settings Card</h1>
'
,
167
cls:
'
card4
'
,
168
iconCls:
'
Manage
'
169
}, {
170
title:
'
搜索
'
,
171
html:
'
<h1>User Card</h1>
'
,
172
cls:
'
card5
'
,
173
iconCls:
'
Searcher
'
174
}]
175
});
176
177
var
msg
=
[
178
'
Updating Database
'
,
179
'
Done:Release.gpg
'
,
180
'
Done:Release
'
,
181
'
Done:Release.gpg
'
,
182
'
Donwloading Release
'
,
183
'
Done:Release.gpg
'
,
184
'
Done:Release
'
,
185
'
Donwloading Release
'
,
186
'
Done:Release.gpg
'
,
187
'
Done:Release
'
,
188
'
Donwloading Release
'
,
189
'
Done:Release.gpg
'
,
190
'
Done:Release
'
,
191
'
Done:Packages
'
192
];
193
194
var
msgindex
=
0
;
195
196
function
showInfo() {
197
if
(msgindex
<
msg.length) {
198
infoPanel.items.items[
0
].body.dom.innerText
=
msg[msgindex
++
];
199
setTimeout(
function
(){ showInfo() }, Math.round(
100
+
Math.random()
*
1500
));
200
}
201
else
{
202
tabpanel.setLoading(
true
,
false
);
203
setTimeout(
function
() {
204
tabpanel.setLoading(
false
,
false
);
205
var
item
=
tabpanel.getComponent(
"
loadBar
"
);
206
tabpanel.removeDocked(item,
false
);
207
tabpanel.doComponentLayout();
208
tabpanel.doLayout();
209
},
4000
);
210
}
211
}
212
213
showInfo();
214
215
216
},
2500
);
217
}
218
});
219
220
</
script
>
221
</
head
>
222
<
body
>
223
</
body
>
224
</
html
>
使用方法:
1、用IIS创建一个虚拟目录放置代码,如cydia
2、用iphone访问IIS创建的目录,如http://192.168.1.100/cydia
3、将网页添加至主屏幕
4、点击主屏幕上的Cydia链接
5、造假过程完成,并且适用于任何版本的iOS^_^
源代码猛击此处下载:
原文链接:http://www.cnblogs.com/linxuanchen/archive/2012/04/24/2467641.html