7 lines
167 B
Python
7 lines
167 B
Python
from ctypes import *
|
|
cdll.LoadLibrary("libc.so.6")
|
|
libc = CDLL("libc.so.6")
|
|
seed = 0x62b1355a
|
|
libc.srand(seed)
|
|
print(hex(libc.rand()&0xff))
|
|
print(hex(libc.rand()&0x7)) |