ETC
-
pwnable 기본 세팅ETC/Pwn 메모장 2021. 4. 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..
-
seccomp 문제 만들때ETC/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..
-
wsl 에서 32bit binary 실행하기ETC/그 외 메모장 2020. 9. 30. 02:00
wsl에서는 기본적으로, 아래과 같이 32bit binary가 실행이 되지 않는다. e10@ELEFT:~$ ./basic_exploitation_000 -bash: ./basic_exploitation_000: No such file or directory 하지만, 다음과 같이 설정해주면 실행할 수 있다. sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install build-essential sudo apt install gcc-multilib 정상적으로 실행이 되는 것을 확인할 수 있다. e10@ELEFT:~$ ./basic_exploitation_000 buf = (0xffbf0228) 참조 https://stackoverflow.c..