본문 바로가기

List/Linux

pwntools - shellcode generation

1. 환경 설정 예제

※ pwntools documents에서는 환경 설정 시 context.binary를 추천


2. open() 예제

e.g.  open("./ABCDEFGHIJKLMN", O_RDONLY)



3. read() 예제

e.g.  read(fd, buff, buff_size) 


※ 'rsp'는 buff주소 대신 rsp에 저장

※ 특정 주소를 지정할 경우 -> sc = pwnlib.shellcraft.amd64.linux.read(3, 0x555555756240, 1024)


'List > Linux' 카테고리의 다른 글

What's Makefile?  (0) 2018.11.26
Ubuntu 부팅 후 런쳐, 대시보드 로드 실패  (0) 2018.05.25
debian-binary unpack  (0) 2017.06.30
vim 붙여넣기 시 계단현상 없애기  (0) 2017.06.14
Android Malware Detection Open Source  (0) 2017.05.17