분류 전체보기
-
[Buffer Overflow] picoCTF WebShell PIE TIMEHacking/CTF 문제 풀이 2025. 5. 22. 22:44
1. 시작 및 분석이번 문제의 유일한 힌트를 보고 나름 정리를 해봤다.이거랑 바이너리 파일 하나를 준다.#include #include #include #include void segfault_handler() { printf("Segfault Occurred, incorrect address.\n"); exit(0);}// 뭔가 이거 실행되면 되는거 같다.int win() { FILE *fptr; char c; printf("You won!\n"); // Open file fptr = fopen("flag.txt", "r"); if (fptr == NULL) { printf("Cannot open file.\n"); exit(0); } // Read contents..
-
[A03:2021 – Injection] picoCTF WebShell SSTI1Hacking/CTF 문제 풀이 2025. 5. 22. 10:25
평소 궁금했던 해킹을 공부하기 위해 OverTheWire Bandit 문제들을 끝내고, “그럼 이제 진짜 CTF를 한번 풀어보자” 싶어서 맨땅에 헤딩하듯 도전했습니다.1. 시작일단 문제를 열었더니 무슨 폼이 하나 있고 버튼이 있다.습관적으로 일단 폼에 아무거나 적고 버튼을 누르니깐 그냥 큰 글씨로 내가 적은 그대로 보여주는 기능인가 보다.overthewire bandit 풀던 습관인지 모르나 ls 먼저 적어봤다.2. 분석 ( 1 )숫자든 영어든 한글이든 특수문자든 다 똑같다.뭐 아는 게 없으니 일단 소스코드에 뭐라도 있을까 싶어 F12로 확인해 봤지만 아무것도 없다.뭐 POST 요청이다라는 거 빼곤 알 수 있는 게 없다. 일단 머리를 굴려보자.DB 들락거리는 건 아닌 거 같고 내가 작성한 글자를 가지고 ..
-
[Linux 공부] Bandit wargames 32~33 단계 login shell & $0Linux 2025. 5. 20. 23:25
Level Goal After all this git stuff, it’s time for another escape. Good luck! Commands you may need to solve this level sh, man" data-og-host="overthewire.org" data-og-source-url="https://overthewire.org/wargames/bandit/bandit33.html" data-og-url="https://overthewire.org/wargames/bandit/bandit33.html" data-og-image=""> OverTheWire: Level GoalWe're hackers, and we are good-looking. We are the 1%...
-
[Linux 공부] Bandit wargames 31~32 단계 gitLinux 2025. 5. 20. 23:11
Level Goal There is a git repository at ssh://bandit31-git@localhost/home/bandit31-git/repo via the port 2220. The password for the user bandit31-git is the s" data-og-host="overthewire.org" data-og-source-url="https://overthewire.org/wargames/bandit/bandit32.html" data-og-url="https://overthewire.org/wargames/bandit/bandit32.html" data-og-image=""> OverTheWire: Level GoalWe're hackers, and we a..
-
[Linux 공부] Bandit wargames 30~31 단계 gitLinux 2025. 5. 20. 22:56
Level Goal There is a git repository at ssh://bandit30-git@localhost/home/bandit30-git/repo via the port 2220. The password for the user bandit30-git is the s" data-og-host="overthewire.org" data-og-source-url="https://overthewire.org/wargames/bandit/bandit31.html" data-og-url="https://overthewire.org/wargames/bandit/bandit31.html" data-og-image=""> OverTheWire: Level GoalWe're hackers, and we a..
-
[Linux 공부] Bandit wargames 29~30 단계 gitLinux 2025. 5. 20. 22:15
Level Goal There is a git repository at ssh://bandit29-git@localhost/home/bandit29-git/repo via the port 2220. The password for the user bandit29-git is the s" data-og-host="overthewire.org" data-og-source-url="https://overthewire.org/wargames/bandit/bandit30.html" data-og-url="https://overthewire.org/wargames/bandit/bandit30.html" data-og-image=""> OverTheWire: Level GoalWe're hackers, and we a..
-
[Linux 공부] Bandit wargames 28~29 단계 git logLinux 2025. 5. 20. 19:05
Level Goal There is a git repository at ssh://bandit28-git@localhost/home/bandit28-git/repo via the port 2220. The password for the user bandit28-git is the s" data-og-host="overthewire.org" data-og-source-url="https://overthewire.org/wargames/bandit/bandit29.html" data-og-url="https://overthewire.org/wargames/bandit/bandit29.html" data-og-image=""> OverTheWire: Level GoalWe're hackers, and we a..
-
[Linux 공부] Bandit wargames 27~28 단계 git repoLinux 2025. 5. 20. 18:29
Level Goal There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo via the port 2220. The password for the user bandit27-git is the s" data-og-host="overthewire.org" data-og-source-url="https://overthewire.org/wargames/bandit/bandit28.html" data-og-url="https://overthewire.org/wargames/bandit/bandit28.html" data-og-image=""> OverTheWire: Level GoalWe're hackers, and we a..