BitTigerio 2018-04-19
select * from user where username='admin' and password='123'
infomation_schema
php://inputphp://input可以读取没有处理过的POST数据。
相较于$HTTP_RAW_POST_DATA而言,它给内存带来的压力较小,并且不需要特殊的php.ini设置。php://input不能用于enctype=multipart/form-data
file_get_contents("php://input")获取post数据的二进制流
select * from user group by id,name,age with rollup;
跟with rollup类似的还有with cube
select database()
select table_name from information_schema.tables where table_schema='my_database'
SELECT Category =
CASE type
WHEN 'popular_comp' THEN 'Popular Computing'
WHEN 'mod_cook' THEN 'Modern Cooking'
WHEN 'business' THEN 'Business'
WHEN 'psychology' THEN 'Psychology'
WHEN 'trad_cook' THEN 'Traditional Cooking'
ELSE 'Not yet categorized'
END,
CAST(title AS varchar()) AS 'Shortened Title',
price AS Price
FROM titles
WHERE price IS NOT NULL
ORDER BY type, priceascii()
select ascii('1234');#返回1
SELECT ascii('1');#返回1substring(s from begIndex for length)
获取子串
计时攻击巧妙绝伦,虽然有运行SQL语句的权限,但是却没办法获取SQL输出结果。
这时,可以通过时间来确定SQL输出结果。
你虽然什么都没说,但我看到你犹豫了。
case when (ascii(substring((select database()) from %d for ))
& %d!=)
then sleep(0.5)
else sleep()
end对于长度为4的字符串,需要探测4×256次。
select ''=0返回1