2020.02.05 포스팅에 시간을 많이 투자하지 못했다... 포스팅에 대한 번아웃이 온것 같았다. 하지만, 며칠간 malloc.c를 분석함으로써 heap에 대한 자신감을 얻을 수 있었다. 이제 한번 문제풀이에 도전해볼 생각이다. 오늘은 0ctf에서 출제된 babyheap문제를 다뤄봤다. 조만간 포스팅 해야겠다. 포스팅 너무 귀찮은데 어쩌지..
Lists
-
pwnable 기본 세팅Pwn 메모장 2021.04.28 16:48
# 기본세팅 sudo apt-get update sudo apt-get -y upgrade # 파이썬 sudo apt-get install python python-dev python-pip # 32비트 sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install build-essential sudo apt install gcc-multilib sudo apt-get install libc6:i386 libstdc++6:i386 # peda sudo apt install gdb git clone https://github.com/longld/peda.git ~/peda echo "source ~/peda/peda.py" >> ~/.gdbi..
-
Python JailPython 2021.04.08 14:07
Python Jail이란? def main(): print(open(__file__).read()) print("Welcome to Jail World!") text = input('>>> ') for keyword in ['eval', 'exec', 'import', 'open', 'os', 'read', 'system', 'write']: if keyword in text: print("Filtered Keyword.") return; else: exec(text) if __name__ == "__main__": main() 위 코드와 같이 CTF에서 나오는 문제 유형으로, Bash Jail과 비슷한 유형으로 나온다. 문자열을 filtering 하며, filtering에 걸리지 않은 문자열들은 exe..
-
seccomp 문제 만들때Pwn 메모장 2020.11.15 13:48
sudo apt-get -y install libseccomp-dev gcc -o seccomp1 seccomp1.c -lseccomp ./seccomp1 libseccomp-dev 패키지 설치 및 gcc 옵션으로 -lseccomp 추가 출처 s3hh.wordpress.com/2012/07/24/playing-with-seccomp/ Playing with seccomp Seccomp is a linux kernel feature by Andrea Arcangeli which limits the system calls which a task can use, by allowing a task to say “from now on, msyelf and my new children should not be ab..