1. 넣어야 하는 쉘코드가 무엇인지 알아낸다.
2. 쉘코드를 c언어로 작성하고 컴파일한다.
3. ida로 실행 파일을 열고, 어느 명령어부터 어느 명령어까지 쉘코드로 사용하는지 알아낸다.
4. ida스크립트를 이용해서 쉘코드를 바이너리로 저장한다.
auto fname = "save.bin";
auto address = 0x0400000;
auto size = 0x030;
auto file= fopen(fname, "wb");
savefile(file, 0, address, size);
fclose(file);
5. python pwntools의 payload항목에 불러온 후, 서버에 send한다.
'system hacking > 개념, 준비물' 카테고리의 다른 글
ida64 free 다운로드와 설치, qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found오류 (0) | 2022.05.19 |
---|---|
docker (pwnable 문제 다양한 ubuntu버전에서 실행하기) (0) | 2022.05.15 |
포너블 문제 풀이시 설치할 것들 (0) | 2022.05.13 |
libc 링킹(patchelf) (0) | 2022.04.17 |
heap (0) | 2022.04.14 |