비오비
7/18 [신정훈 멘토님]
sonysame
2019. 7. 18. 17:44
tmux 설치
apt install tmux
context.terminal=['tmux','splitw','-h']
clang -o x x.c -fsanitize=address
free된 메모리에 접근하려고 하면 잡아낸다(UAF)
shallow copy가 일어나서 a->age, b->age가 같은 곳을 가리킨다.
a를 delete하는 경우, free가 일어나기때문에 b->age를 출력하면 에러가 난다!
while [1]; do ln -sf ./good.sh ./test.sh; done
while [1]; do ln -sf ./evil.sh ./test.sh; done
while [1]; do ./race test.sh 2>/dev/null | grep bob; done
과제1) 프로그램 주시는데, 그걸 exploit하면 된다. python exploit제출!
nc singi.io 31315
과제2) CVE 2017 11882
window7...windowXP