본문 바로가기 메뉴 바로가기

https://h0pp1.github.io/

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

https://h0pp1.github.io/

검색하기 폼
  • 분류 전체보기 (94)
    • writeup (81)
      • webhacking.kr (8)
      • dreamhack (36)
      • hackerfactory (3)
      • LOS (29)
      • HTB (5)
    • study (11)
      • web (5)
      • pentest (6)
  • 방명록

case 사용하기 (1)
[Lord of SQL injection] frankenstein

63번째 글. 1. 코드 분석 union과 괄호를 쓸 수 없었다. 쿼리를 실행하고 에러가 발생하면 'error'를 출력한다. admin의 pw값을 찾으면 문제가 풀리게 된다. 2. Exploit 일단 괄호가 필터링되기 때문에 주요한 함수를 쓸 수 없다. 또한 union도 막혔다... 에러를 발생시키는 것은 지금껏 많이 했기 때문에 어렵지 않지만 문제는 어떻게 함수와 union을 안 쓰고 우회하느냐 인데 결국은 구글링의 도움으로 case문을 찾았다. ?pw=' or case when id='admin' and pw < 특정값 then 9e307*2 else 1 end%23 이렇게 주게되면 when의 조건이 참이면 9e307*2을 할당해 에러를 발생시킨다.정확한 크기비교를 위해서 hex값을 이용해서 특정값을..

writeup/LOS 2021. 8. 15. 23:48
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • webhacking.kr
  • hackerfactory
  • SQL Injection
  • csp bypass
  • xxe injection
  • 드림핵 Relative Path Overwrite
  • Windows Fundamentals
  • dreamhack web-alasql
  • dreamhack CSS Injection
  • alasql
  • csp
  • php LFI
  • dreamhack padding oracle
  • htb Windows Fundametals
  • 드림핵 DOM XSS
  • 드림핵 padding oracle
  • dreamhack Relative Path Overwrite
  • Lord of SQL injection
  • blind injection
  • dreamhack DOM XSS
  • DreamHack
  • wargame
  • hack the box
  • LFI vulnerability
  • htb
  • CSS Injection
  • 드림핵
  • 웹해킹
  • WebHacking
  • 해커팩토리
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바