[OverTheWire] Natas Level26 http://natas26.natas.labs.overthewire.org/ id : natas26 pw : oGgWAJ7zcGT28vYazGo4rkhOPDhBu34T (x1, y1)에서 (x2, y2) 으로 직선을 긋는 프로그램이다.. 소스를 보자.. <?php // sry, this is ugly as hell. // cheers kaliman ;) // - morla class Logger{ private $logFile; private $initMsg; private…
읽어보기 →
[OverTheWire] Natas Level21 http://natas21.natas.labs.overthewire.org/ id : natas21 pw : IFekPyrQXftziDEsUr3x21sYuahypdgJ 이번 문제는 http://natas21-experimenter.natas.labs.overthewire.org와 co-localtion되어 있다고 한다. 해당 CSS 값을 넣어주면 Hello World! 박스의 css가 변경된다. 소스를 살펴보면.. <? session_start(); // if update was submitted, store it if(array_key_exists("submit", $_REQUEST)) { foreach($_REQUEST as $key…
읽어보기 →
[OverTheWire] Natas Level19 http://natas19.natas.labs.overthewire.org/ id : natas19 pw : 4IwIrekcuZlA9OsjOkoUtwU6lhokCPYs ㅎㅎ전 레벨과 거의 같은 코드인데.. 더이상 세션 아이디가 순차적이지 않다고 한다.. 이전과 거의 코드가 같다고 하니우선 burf에서 세션정보를 확인해보았다.. 세션생성 부분이 조금 달라진 것으로 보인다.. 세션 생성의 패턴을 알아보기 위해 같은 계정정보(Username…
읽어보기 →
[OverTheWire] Natas Level17 http://natas17.natas.labs.overthewire.org/ id : natas17 pw : 8Ps3H0GWbn5rd9S7GmAdgQNdkhPkq9cw Level15 와 같이 중복체크를 하는 프로그램이다.. 소스를 보자 <? /* CREATE TABLE `users` ( `username` varchar(64) DEFAULT NULL, `password` varchar(64) DEFAULT NULL ); */ if(array_key_exists("username", $_REQUEST)) { $link = mysql_connect('localhost', 'natas17', '<censored>');…
읽어보기 →
[OverTheWire] Natas Level15 http://natas15.natas.labs.overthewire.org/ id : natas15 pw : AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J username 중복체크를 하는 부분으로 보인다.. 소스를 확인해보면.. <? /* CREATE TABLE `users` ( `username` varchar(64) DEFAULT NULL, `password` varchar(64) DEFAULT NULL ); */ if(array_key_exists("username", $_REQUEST)) { $link = mysql_connect('localhost', 'natas15', '<censored>'); mysql_select_db('natas15',…
읽어보기 →
[OverTheWire] Natas Level12 http://natas12.natas.labs.overthewire.org/ id : natas12 pw : EDXp0pS26wLKHZy1rDBPUZk0RKfLGIR3 파일업로드 문제다.. 이미지 파일을 업로드하는데 max 1KB 이다.. 헐.. 우선 소스보기 부터 하면.. <? function genRandomString() { $length = 10; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ""; for ($p = 0; $p <…
읽어보기 →
[OverTheWire] Natas Level01 http://natas0.natas.labs.overthewire.org/ id : natas1 pw : gtVrDuiDfck831PqWsLEZy5gyDz1clto 소스보기를 막기위해 마우스 우클릭을 사용못하게 했다.. 하지만 크롬의 경우 주소창에 아래와 같이 쓰면 바로 보인다.. view-source:http://natas1.natas.labs.overthewire.org/ 그 외에도 개발자 도구나 proxy 서버로 봐도 보인다.. 정답 : ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi
읽어보기 →