Apollo89 · Author

apollo89

아폴로89 입니다.
783 articles
Security

보호된 글: webhacking.kr 11 [codeing, 300]

  문제 : 정규표현식 문제다.. pat 패턴에 맞춰서 val 변수를 GET 방식으로 넘겨주면 될 것 같다. 300점이나 되는데 그리 복잡하지 않은 정규식이다. [1-3] : 1,2,3 중 한글자. [a-f]{5} : a,b,c,d,e,f 중 5글자. \t : 텝 문자인데 tab을 url 인코딩한 %09으로 문자를 만들어보면..…

읽어보기 →
Security

보호된 글: webhacking.kr 7 [web, 300]

  문제 : 소스보기를 하니 admin mode : val=2 라는 힌트와 index.phps 소스가 있는 것을 확인했다. <html> <head> <title>Challenge 7</title> </head> <body> <!-- db에는 val=2가 존재하지 않습니다. union을 이용하세요 --> <? $answer = "????"; $go=$_GET[val]; if(!$go) { echo("<meta http-equiv=refresh content=0;url=index.php?val=1>"); } $ck=$go;…

읽어보기 →
Security

보호된 글: webhacking.kr 5 [web, 300]

  문제 : 먼저 login 버튼을 누르면 http://webhacking.kr/challenge/web/web-05/mem/login.php 에 접속하며, 로그인 창이 보인다. 아무id와 pw를 넣으면 Access Denied! id is not admin 메세지가 나온다. 그래서 admin 으로 로그인 시도를 하면 Wrong password 메세지가 나온다. 그럼 이번에는 join 버튼을 눌러보니 Access Denied! 팝업이…

읽어보기 →
Security

보호된 글: webhacking.kr 56 [web, 250]

  문제 : 게시판 같다. 우선 admin 이 쓴글을 읽어보면 access denied 이다. 그리고 guest 가 쓴 글은 hi~ 다. 그리고 밑에 search 가 있어서 hi를 검색했더니 hi 게시물이 나왔다.. 그리고 h를 검색했더니 두 게시물 모두 나왔다. 그리고 a를 검색했더니 두 게시물…

읽어보기 →
Security

보호된 글: webhacking.kr 51 [bonus, 250]

  문제 : 오른쪽 아래에 보면 Source가 있다. <html> <head> <title>Challenge 51</title> <style> table{ color:lightgreen;} </style> </head> <body bgcolor=black><br><br> <font color=silver> <center><h1>Admin page</h1></center> </font> <? if ($_POST[id] && $_POST[pw]) { $input_id = $_POST[id]; $input_pw = md5($_POST[pw], true); $q = @mysql_fetch_array(mysql_query("select id from…

읽어보기 →
Security

보호된 글: webhacking.kr 43 [web, 250]

  문제 : 웹쉘을 업로드 하란다.. 힌트는 파일 타입이다.. 일단 정상 파일을 올려보자.. 잘 올라갔다. Check를 눌러보면 확인도 해볼 수 있다. 올라간 것을 proxy tool 으로 확인해보니, Content-Type: image/jpeg 인 것을 확인할 수 있다. 이번에는 php 파일을 업로드 해보았더니 역시나 access denied…

읽어보기 →
Security

보호된 글: webhacking.kr 37 [web, 250]

  문제 : 웬 숫자가.. 일단 소스보기 하니 index.phps 소스가 힌트로 제공된다. <html> <head> <title>Challenge 37</title> </head> <body> <!-- index.phps --> <? $pw = "???"; $time = time(); $f = fopen("tmp/tmp-$time", "w"); fwrite($f, "127.0.0.1"); fclose($f); $fck = @file("tmp/.number"); if ($fck) $fck =…

읽어보기 →
Security

보호된 글: webhacking.kr 41 [web, 250]

  문제 : 업로드 창이다. test.txt 파일과 test.php 파일을 올려봤는데 특이점이 없었다. 소스보기를 하니 힌트가 나왔다(index.phps) <html> <head> <title>Challenge 41</title> </head> <body> <? $hidden_dir="???"; $pw="???"; if($_FILES[up]) { $fn=$_FILES[up][name]; $fn=str_replace(".","",$fn); if(eregi("/",$fn)) exit("no"); if(eregi("\.",$fn)) exit("no"); if(eregi("htaccess",$fn)) exit("no"); if(eregi(".htaccess",$fn)) exit("no"); if(strlen($fn)>10) exit("no"); $fn=str_replace("<","",$fn); $fn=str_replace(">","",$fn); $cp=$_FILES[up][tmp_name];…

읽어보기 →
Security

보호된 글: webhacking.kr 21 [bonus, 250]

  문제 : 친절하게 blind sql injection 문제라고 적혀있다. 그럼 기초적인 테스트를 해보자. 1과 2를 넣으면 True 가 나오고 3을 이후로 값을 넣으면 False가 나온다. 그리고 url을 보면 아래와 같은 파라메터가 있는 것도 알 수 있다. http://webhacking.kr/challenge/bonus/bonus-1/index.php?no=1&id=&pw= 아마 no으로 쿼리해서 id와 pw를…

읽어보기 →
Security

보호된 글: webhacking.kr 12 [codeing, 250]

  문제 : 아무 내용없이 javascript challenge 라는 글만 보인다. 소스를 보니.. <html> <head> <title>Challenge 12</title> <style type="text/css"> body { background: black; color:white; font-size:10pt; } </style> </head> <body> <script> wtf=String.fromCharCode(118,97,114,32,101,110,99,111,61,39,39,59,13,10,118,97,114,32,101,110,99,111,50,61,49,50,54,59,13,10,118,97,114,32,101,110,99,111,51,61,51,51,59,13,10,118,97,114,32,99,107,61,100,111,99,117,109,101,110,116,46,85,82,76,46,115,117,98,115,116,114,40,100,111,99,117,109,101,110,116,46,85,82,76,46,105,110,100,101,120,79,102,40,39,61,39,41,41,59,13,10,32,13,10,32,13,10,102,111,114,40,105,61,49,59,105,60,49,50,50,59,105,43,43,41,13,10,123,13,10,101,110,99,111,61,101,110,99,111,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,105,44,48,41,59,13,10,125,13,10,32,13,10,102,117,110,99,116,105,111,110,32,101,110,99,111,95,40,120,41,13,10,123,13,10,114,101,116,117,114,110,32,101,110,99,111,46,99,104,97,114,67,111,100,101,65,116,40,120,41,59,13,10,125,13,10,32,13,10,105,102,40,99,107,61,61,34,61,34,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,52,48,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,50,48,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,51,50,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,49,57,50,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,50,54,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,48,48,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,48,52,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,50,50,50,45,50,41,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,95,40,49,57,56,41,41,43,34,126,126,126,126,126,126,34,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,50,41,43,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,110,99,111,51,41,41,13,10,123,13,10,97,108,101,114,116,40,34,80,97,115,115,119,111,114,100,32,105,115,32,34,43,99,107,46,114,101,112,108,97,99,101,40,34,61,34,44,34,34,41,41,59,13,10,125,13,10); eval(wtf); </script> <font size=2>javascript challenge</font> </body> </html> 뭔가 엄청나다.. 자바스크립트 디코딩 문제인…

읽어보기 →
Security

보호된 글: webhacking.kr 10 [codeing, 250]

  문제 : 코딩 문제라는데 뭘하라는건지 모르겠다. 우측 상단에 있는 O에 마우스 오버를 하면 yOu 로 바뀐다. 일단 소스를 보자. <html> <head> <title>Challenge 10</title> </head> <body> <hr style=height:100;background:brown;> <table border=0 width=900 style=background:gray> <tr><td> <a style="position:relative;left:0;top:0" onclick="this.style.posLeft+=1;if(this.style.posLeft==800)this.href='?go='+this.style.posLeft" onmouseover=this.innerHTML='yOu' onmouseout=this.innerHTML='O'>O</a><br> <font style="position:relative;left:800;top:0" color=gold>|<br>|<br>|<br>|<br>buy lotto</font>…

읽어보기 →
Security

보호된 글: webhacking.kr 61 [web, 200]

  문제 : 문제에 접속하면 source 링크만 있다. 링크를 눌러 보면, 딱봐도 sql injection 문제인걸 알 수 있다. 일단 get 방식으로 id를 입력받고, 입력받은 id 값을 컬럼으로 가지는 쿼리의 결과가 admin 이면 된다.. 뭔가 좀 복잡하지만... 그리고 테스트로 id=id으로 넣으니 zombie 가…

읽어보기 →