Apollo89 · Author

apollo89

아폴로89 입니다.
783 articles
Security

보호된 글: [OverTheWire] Natas Level16

[OverTheWire] Natas Level16 http://natas16.natas.labs.overthewire.org/ id : natas16 pw : WaIHEacj63wnNIBROHeqi3p9t0m5nhmh Level 09와 Level 10 에서 나왔던 키워드를 찾는 프로그램인데.. 보안상의 이유로 필터를 추가했다고 한다. 소스를 보자.. <? $key = ""; if(array_key_exists("needle", $_REQUEST)) { $key = $_REQUEST["needle"]; } if($key != "") { if(preg_match('/[;|&`\'"]/',$key))…

읽어보기 →
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',…

읽어보기 →
Security

보호된 글: [OverTheWire] Natas Level14

[OverTheWire] Natas Level14 http://natas14.natas.labs.overthewire.org/ id : natas14 pw : Lg96M10TdfaPyVBkJdjymbllQ5L6qdl1 로그인 창이다.. 소스를 한번보자.. <? if(array_key_exists("username", $_REQUEST)) { $link = mysql_connect('localhost', 'natas14', '<censored>'); mysql_select_db('natas14', $link); $query = "SELECT * from users where username=\"".$_REQUEST["username"]."\" and password=\"".$_REQUEST["password"]."\""; if(array_key_exists("debug", $_GET)) { echo "Executing query: $query<br>";…

읽어보기 →
Network

ubuntu linux 에서 Volatility 설치

ubuntu linux 에서 Volatility 설치 1. 필요 라이브러리 설치 $ sudo apt-get update $ sudo apt-get install build-essential subversion pcregrep libpcre++-dev python-dev sqlite3 libsqlite3-dev -y proxy 환경일 경우 apt-get를 아래와 같이 설정한다. $ cat /etc/apt/apt.conf Acquire::http::proxy "http://xxx.xxx.xxx.xxx:8080/"; Acquire::https::proxy "https://xxx.xxx.xxx.xxx:8080/"; 또는 sudo http_proxy='http://xxx.xxx.xxx.xxx:8080/'…

읽어보기 →
Security

보호된 글: [OverTheWire] Natas Level13

[OverTheWire] Natas Level13 http://natas13.natas.labs.overthewire.org/ id : natas13 pw : jmLTY0qiPZBbaKc9341cqPQZBJv7MQbY 이번에도 파일업로드 문제인데.. 보안상의 이유로 이미지 파일만 허용한다고 한다.. <? function genRandomString() { $length = 10; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ""; for ($p = 0; $p < $length; $p++) { $string…

읽어보기 →
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 <…

읽어보기 →
Tech

보호된 글: [OverTheWire] Natas Level11

[OverTheWire] Natas Level11 http://natas11.natas.labs.overthewire.org/ id : natas11 pw : U82q5TCMMQ9xuFoI3dYX61s7OZD9JKoK RGB를 넣으면 배경색을 바꿔준다.. 우선 소스를 보자.. <? $defaultdata = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) {…

읽어보기 →
Tech

보호된 글: [OverTheWire] Natas Level10

[OverTheWire] Natas Level10 http://natas10.natas.labs.overthewire.org/ id : natas10 pw : nOpp1igQAkUzaI1GUUjzn1bFVj7xCNzu 키워드를 찾는 프로그램으로 보인다.. 소스보기를 하면 아래와 같은 PHP소스가 보인다. <? $key = ""; if(array_key_exists("needle", $_REQUEST)) { $key = $_REQUEST["needle"]; } if($key != "") { if(preg_match('/[;|&]/',$key)) { print "Input contains an illegal…

읽어보기 →
Tech

보호된 글: [OverTheWire] Natas Level09

[OverTheWire] Natas Level09 http://natas9.natas.labs.overthewire.org/ id : natas9 pw : W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl 키워드를 찾는 프로그램으로 보인다.. 소스보기를 하면 아래와 같은 PHP소스가 보인다. <? $key = ""; if(array_key_exists("needle", $_REQUEST)) { $key = $_REQUEST["needle"]; } if($key != "") { passthru("grep -i $key dictionary.txt"); } ?> 소스코드를…

읽어보기 →
Network

보호된 글: [OverTheWire] Natas Level08

[OverTheWire] Natas Level08 http://natas8.natas.labs.overthewire.org/ id : natas8 pw : DBfUBfqQG69KvJvJ1iAbMoIpwSNQ9bWe secret을 입력하란다.. 옆에보니 View sourcecode가 있다.. 확인했더니 소스중에 아래와 같은 PHP코드가 있다. <? $encodedSecret = "3d3d516343746d4d6d6c315669563362"; function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } if(array_key_exists("submit", $_POST)) { if(encodeSecret($_POST['secret']) == $encodedSecret) { print "Access granted.…

읽어보기 →
Tech

보호된 글: [OverTheWire] Natas Level07

[OverTheWire] Natas Level07 http://natas7.natas.labs.overthewire.org/ id : natas7 pw : 7z3hEENjQtflzgnT29q7wAvMNfZdh0i9 소스보기를 하니 아래에 힌트가 있다. password for webuser natas8 is in /etc/natas_webpass/natas8 두 개다 page 파라미터로 각각 home과 about을 넘겨준다.. 이 파라미터에 test라고 입력해보니... test를 include할 수 없다고 나온다.. 그러면 힌트인 /etc/natas_webpass/natas8…

읽어보기 →
Tech

보호된 글: [OverTheWire] Natas Level06

[OverTheWire] Natas Level06 http://natas6.natas.labs.overthewire.org/ id : natas6 pw : aGoY4q2Dc6MgDq4oL4YtoKtyAg9PeHa1 secret을 입력하란다.. 옆에보니 View sourcecode가 있다.. 확인했더니 소스중에 아래와 같은 PHP코드가 있다. <? include "includes/secret.inc"; if(array_key_exists("submit", $_POST)) { if($secret == $_POST['secret']) { print "Access granted. The password for natas7 is <censored>"; }…

읽어보기 →