❓ 문제 확인
자바스크립트 관련 문제이다
📃 풀이
문제에 들어가보니 로그인 버튼이 보인다
로그인버튼을 눌러보니 username 과 password 입력창이 뜨길래
무작위로 입력해보았다
안돼, 넌 못된 해커야 ! 라고한다
ㅋㅋㅋ,,
개발자도구로 소스코드를 확인해보자
문제 그대로 자바스크립트에 대해 아는지 물어 보는 문제인거같다
소스코드를 보면
username =TheUsername, password=ThePassword 이어야 하는데
주목해야할 부분은 TheLists.[i].spilt(" : ") 부분이다
spilt 메서드는 문자열을 하위 문자열로 분할하는데
TheLists의[GOD:HIDDEN]에서 : 기준으로 분할하는걸 알수있다
TheSpilt[0] = GOD
TheSpilt[1] = HIDDEN
즉 username과 password 는 GOD 와 HIDDEN이다
하나하나 알아가는 재미가 있는거 같다
끝~
🔖새로 알게된 내용
1.javascript spilt()메서드
'Wargame > root-me.org' 카테고리의 다른 글
[root-me.org] web - Client : Javascript - Obfuscation 2 (0) | 2022.08.23 |
---|---|
[root-me.org] web - Client : Javascript - Obfuscation 1 (0) | 2022.08.23 |
[root-me.org] web - Client : Javascript - Source (0) | 2022.08.23 |
[root-me.org] web - Client : Javascript - Authentication (0) | 2022.08.22 |
[root-me.org] web - Client : HTML - disabled buttons (0) | 2022.08.22 |