|
应该是在下面这个网页上http://predev.wikidot.com/shell需要翻墙! X' P# |0 p' z% k3 m. m
就是把webshell移植过来,
3 |* r) q. {) v w8 C1 P. I先安装optware packge,再安装python,
9 T/ v8 H% F3 \- Moptware安装参见
0 i# K* ^# T( P如何破解Pre:root权限.ssh登录....
7 x, l! d9 k4 H$ H2 V. u& K
% A8 s0 W0 k, Y" t: ^! B& D1. SSH into your Pre.通过ssh连接到pre上。- Z9 m8 N+ b u4 g$ F
2. Download Webshell:下载- wget http://web-shell.googlecode.com/files/WebShell-0.9.6.zip
复制代码 3. Install Python: 安装python- sudo /opt/bin/ipkg-opt install python
复制代码 4. Extract the contents of WebShell-0.9.6.zip: 解压5. Generate a server certificate: 生成服务器证书- cd WebShell-0.9.69 u0 W$ `$ x/ P: \2 R
- sh ./make_certificate.sh* \; C: d! v, b, U; u
复制代码 6. Move WebShell to /opt/share/webshell: 移动webshell- cd ..: i( r) V/ ]0 n8 i
- sudo mv WebShell-0.9.6/ /opt/share/webshell
复制代码 7. Create an upstart script "/etc/event.d/webos-webshell" with the following contents: 创建一个etc/event.d/webos-webshell文件,内容如下- start on stopped finish+ u. k1 W8 d- s! ^0 F7 Q% v+ q; D
- stop on runlevel [!2]6 i7 W# W8 e) U
- " z4 p0 g" Q, D# `% a/ U
- console none
# w! {* P0 Z6 _6 R4 c" i - + c; m" u3 i6 {$ i6 |
- respawn
% V, |0 u: v d; Q- Y: J - 4 n+ m" L, z( a$ f+ B* v( \
- exec /opt/bin/python /opt/share/webshell/webshell.py -c "/opt/bin/ssh -p 222 -l $USER localhost" --ssl-disable2 w! y W( Y- ]
- 7 F. A( t8 [3 x: M" @1 q
复制代码 where $USER is replaced by your user name. 其中$USER用你的用户名代替。0 @2 F9 F1 E; c4 T
8. Restart the Pre.重启4 @( `: A% L3 u3 h5 z* ^3 }( E
# T8 J% z B( J; F1 B: ^3 x9. Open up your web browser and go to打开浏览器输入6 ~, d% D# Y4 y0 C7 ?/ H
( g( I7 c7 o3 jhttp://127.0.0.1:8022" n1 ^1 r$ g& M0 T
5 Y3 R& M$ m# T$ E: ]
10. Type in your password and you now have a shell. You can run any commands you want now directly on your phone.
( `. {4 D' s) Y/ T8 [9 y! V, _Note If it looks like you are seeing a bunch of text flash at the top of the screen, rotate your phone into Landscape mode, hit the enter key a bunch of times. You will either be able to see the error and can fix it through your version of SSH or you will get a disconnection message. If you do get a disconnected message, hit Refresh and try to login. It should start working then.! V ]$ f% b+ P! J5 Y1 ?) C" e
" {" [ @+ N# ~' B/ WNote Eventually there will be a way to disable the auto-text functions (automatic caps especially).
# z) Q( N3 M# d0 _0 }6 W
6 ]2 n t6 V' tVerified to work as typed by optik678 and hopspitfire.
: q# e' C1 T/ M( x5 `: X* c4 s* t
$ S* o0 S% w3 e- _[ 本帖最后由 felixw 于 2009-7-24 15:18 编辑 ] |
评分
-
查看全部评分
|