문제

For a school project I need to hack a database (made by the school for practice) and I have to retrieve all the rows of a specific column via SQL-Injection. I have been provided the column and table name.

Here is my example query that needs help.

bla' union all select 2, DefaultCreditCardNumber,5,6 from buyer#

This will retrieve only 1 row each time I enter the query. Is it possible to get all the rows at once? If so how?

도움이 되었습니까?

해결책

Unless the queries results are not printed in a loop you can not get all rows at once.

You need to get the data row by row:

bla' union all select 2, DefaultCreditCardNumber,5,6 from buyer LIMIT n,1#

Where n is the index of the row (0, 1, 2, ...)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top