HACKING/Web hacking

mysql group_concat

공부하자~~ 2018. 4. 4. 20:05

rootme 문제를 풀면서 구글링을 하다가 table_name을 한번에 뽑아 내는 방법을 알게됐다.


mysql의 group_concat 함수를 사용하면 친절하게도 table_name을 limit로 따로따로 구하지 않고 한번에 붙여서 출력해준다.


ex)


select all group_concat(table_name) from information_schema.tables


=> 각 테이블을 콤마로 구분하여 출력해준다.