Apollo89 · Technical Notes

직접 설치하고, 직접 써보고, 문제를 해결해서 기록합니다.

AI Coding, Development, Security, Network, Automation을 중심으로 실제 구축 과정에서 만난 문제와 해결 방법을 정리합니다.

이 영역에는 쿠팡/토스 파트너스 제휴 링크가 포함되어 있으며, 구매 시 일정액의 수수료를 제공받을 수 있습니다.

Latest Articles

최근 작성한 글 10개

Security

보호된 글: [TheBlacksheep] Exploit 6: Common passwords

  문제 헐.. guessing 문제다.. 일단 많이 쓰는 패스워드 부터 하나씩 넣어봤다.. admin, password, admdin1, 1234, 12345,123456 그러다가 root 에서 pass~ 근데 다음단계가 또 있다.. 이번에는 뭘 넣어도 안된다..ㅠㅜ 구글에서 Common passwords 를 검색해서 다 넣어봐도 안된다.. http://www.cbsnews.com/news/the-25-most-common-passwords-of-2012/ 한참 삽질을 하다가 혹시..…

읽어보기 →
Security

보호된 글: [TheBlacksheep] Exploit 2: Analyse this I!

  문제 php Local File Inclusion 문제다.. /user/www/index.php 파일을 open 해보라는 문제인데.. 간단하다.. 첫번째 문제의 경우 base path 가 /user/www/challenges/ 인데, 입력되는 url값에서 ../ 값을 str_replace 한다. 그래서 ..././index.php으로 하면 된다. 두번째 문제의 경우 ../나 :// 의 문자를 필터한다.. 하지만 상관없다 절대…

읽어보기 →
Security

보호된 글: [TheBlacksheep] Exploit 1: Easy starter

  문제 Exploit 이라고 해서 리버싱 이나 시스템 문제인줄 알았더니, 웬 로그인창.. username 은 5~20 자 라고 한다.. 소스를 보니.. ... <table cellspacing="0" style="margin:0px auto;"> <tr> <td style="text-align:right;color:#FA0;padding-right:4px;"><label for="input_user">Username:</label></td> <td style="text-align:left;"><input type="text" value="" id="input_user" name="input_user" class="edit" maxlength="20" size="20" tabindex="1" /></td> <td rowspan="2"…

읽어보기 →
Development

보호된 글: [TheBlacksheep] JavaScript 8: Encryption is everything

  문제 password 를 묻는 창이 계속 뜬다.. (아주 짜증난다.) proxy tool으로 잡아보니 아래와 같은 소스를 확인할 수 있었다. 우선 url 인코딩된 pass 변수를 변환해보니, 2346ad27d7568ba9896f1b7da6b5991251debdf2 값이 나왔다. 그리고 hex_crypt 함수는를 확인했더니.. http://www.bright-shadows.net/challenges/javascript9/crypt.js var hexcase = 0; var b64pad = ""; var…

읽어보기 →
Development

보호된 글: [TheBlacksheep] JavaScript 7: $cript Kiddie$

  문제 접속해보면 Username 과 Password 를 묻는다. 소스를 보니, JScript.Encode 으로 인코딩된 javascript 가 보인다. http://www.greymagic.com/security/tools/decoder/decoder.asp 를 이용해 인코딩된 js를 디코딩해보면, function checkMe(form) { var user = form.user.value var pass = form.pass.value if ((user == "microcrap") && (pass == "broken")) {…

읽어보기 →
Development

보호된 글: [TheBlacksheep] JavaScript 5: Easy script

  문제 입력창이다 소스를 보면.. <script type="text/javascript"> function check() { pass = unescape('%44%61%67%6F%62%65%72%74%20%44%75%63%6B'); solution = pass.substr(0,8)+pass.substring(9,13)+pass.substring(8,9); passwd = document.formular.user.value; if (passwd == solution) { window.location.href=solution+".php"; } else { alert("False!!!"); } } </script> 인코딩된 %44%61%67%6F%62%65%72%74%20%44%75%63%6B 부분을 디코딩 해보면 "Dagobert Duck" 이 나오고, solution…

읽어보기 →
Development

보호된 글: [TheBlacksheep] JavaScript 4: Hard but possible.

  문제 입력창이다.. 소스를 보니.. <script src="JavaScript"> function testEncode() { var dater = new Date(); Day = dater.getDate(); dater = null; Ret = encode(document.formular.user.value, Day); location = Ret+".php"; } function encode (OrigString, CipherVal) { Ref="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ"; CipherVal = parseInt(CipherVal); var Temp=""; for (Count=0;…

읽어보기 →