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
'비오비' 카테고리의 다른 글
7/19 [이상섭 멘토님] (0) | 2019.07.19 |
---|---|
7/18 [이기택 멘토님] (0) | 2019.07.18 |
7/18 [박세준멘토님] 자동차보안 (0) | 2019.07.18 |
공통교육 7/8 (0) | 2019.07.15 |
7/14 (0) | 2019.07.14 |