Apollo89 · Category

Development

Python, Java, JavaScript, PHP, Database 등 소프트웨어 개발 과정에서 사용한 기술과 코드, 오류 해결 방법을 기록합니다.

253 articles
Development

보호된 글: [OverTheWire] Natas Level21

[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…

읽어보기 →
Development

보호된 글: [OverTheWire] Natas Level19

[OverTheWire] Natas Level19 http://natas19.natas.labs.overthewire.org/ id : natas19 pw : 4IwIrekcuZlA9OsjOkoUtwU6lhokCPYs ㅎㅎ전 레벨과 거의 같은 코드인데.. 더이상 세션 아이디가 순차적이지 않다고 한다.. 이전과 거의 코드가 같다고 하니우선 burf에서 세션정보를 확인해보았다.. 세션생성 부분이 조금 달라진 것으로 보인다.. 세션 생성의 패턴을 알아보기 위해 같은 계정정보(Username…

읽어보기 →
Development

보호된 글: [OverTheWire] Natas Level17

[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>');…

읽어보기 →
Development

보호된 글: [OverTheWire] Natas Level15

[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',…

읽어보기 →
Development

보호된 글: [OverTheWire] Natas Level12

[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 <…

읽어보기 →
Development

보호된 글: [OverTheWire] Natas Level01

[OverTheWire] Natas Level01 http://natas0.natas.labs.overthewire.org/ id : natas1 pw : gtVrDuiDfck831PqWsLEZy5gyDz1clto 소스보기를 막기위해 마우스 우클릭을 사용못하게 했다.. 하지만 크롬의 경우 주소창에 아래와 같이 쓰면 바로 보인다.. view-source:http://natas1.natas.labs.overthewire.org/ 그 외에도 개발자 도구나 proxy 서버로 봐도 보인다.. 정답 : ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi

읽어보기 →
Development

보호된 글: pythonchallenge 22 (emulate)

  http://www.pythonchallenge.com/pc/hex/copper.html 자 이번엔 뭔가요~ 소스보기를 하니 or maybe white.gif would be more bright 힌트가 나온다.. http://www.pythonchallenge.com/pc/hex/white.gif 로 접속해보니 있다.. 근데 왜 검은색이지?ㅋ 자세히 보면 가운데 1픽셀이 이리저리 움직이고 있는 것을 볼 수 있다.. 애니메이션 gif이다. 예전에 Animated Gif Frame Extractor를 사용해…

읽어보기 →
Development

보호된 글: pythonchallenge 21

  20 레벨에서 얻은 zip 파일의 비밀번호를 얻어 압축을 풀면 readme.txt과 package.pack 파일이 있고, pc-20.zip) readme.txt 파일의 내용에는 아래와 같이 적혀있다. Yes! This is really level 21 in here. And yes, After you solve it, you'll be in level 22! Now for…

읽어보기 →
Development

보호된 글: pythonchallenge 20 (go away!)

  http://www.pythonchallenge.com/pc/hex/idiot2.html 이미지에 사유지 접근금지.. 라고 적혀있는데.. 아래글에는 잘살펴보면 들어갈 수 있음.. 이라고 적혀있다 소스보기를 해도 힌트가 없고 이미지를 이리저리 봐도 별 내용이 없다..ㅠㅠ 그렇게 한참을 뒤지다가 burf의 이미지 response 에서 수상한 헤더를 발견했다. Content-Range: bytes 0-30202/2123456789 찾아보니 컨텐츠의 특정 부분만 전송하는…

읽어보기 →
Development

보호된 글: pythonchallenge 19 (please!)

  http://www.pythonchallenge.com/pc/hex/bin.html 이번엔 인도? 지도이다.. 소스보기를 하니 주석으로 메일양식으로 indian.wav파일이 <!-- From: leopold.moz@pythonchallenge.com Subject: what do you mean by "open the attachment?" Mime-version: 1.0 Content-type: Multipart/mixed; boundary="===============1295515792==" It is so much easier for you, youngsters. Maybe my computer is out of order.…

읽어보기 →
Development

[Cubieboard2] apathe2+php+mysql 서버 구축하기(apt-get)

큐비보드를 파일 서버로 만들어보기로 했다. 소음도 없고 전력 소모량도 작기 때문에 제격이라 생각했다. 나한테 제일 편하고 익숙한 apache2 + php5 + mysql 환경을 큐비보드에 구성해보자 현재 큐비보드에 설치된 OS가 우분투 기반이라 apt-get으로 쉽게 설치할 수 있다. 1. apache2 설치. root@cubieboard2:~# apt-get install…

읽어보기 →