리버싱
python에서 c rand 사용하기
y2h000123
2022. 7. 7. 10:40
# windows
from ctypes import *
libc=CDLL("msvcrt")
libc.srand(seed)
libc.rand()
# linux
from ctypes import *
libc=CDLL("/lib/x86_64-linux-gnu/libc.so.6")
libc.srand(seed)
libc.rand()