Apollo89 · Technical Notes

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

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

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

Latest Articles

최근 작성한 글 10개

Tech

VM에 하드디스크 추가로달고 마운트하기

VM에 하드디스크 추가로달고 마운트하기 Volatility 으로 분석용 VM을 만들었는데.. 처음 Ubuntu를 설치할때 아무생각없이 기본으로 설정하는 바람에 HDD가 20G밖에 안된다..ㅠ Ubuntu 패키지 업데이트 하고 이거저거 깔고보니 남은 HDD가 4G OTL... 그래서 VM에 하드디스크를 추가로 20G 달고 마운트 시켰다.. 먼저 Setting에서 Add 를 눌러…

읽어보기 →
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"); } ?> 소스코드를…

읽어보기 →