본문 바로가기
리버싱

리눅스&윈도우 srand값 가져오는 법

by lolchangilsang 2022. 2. 17.
#리눅스 srand값 가져오기
'''from ctypes import *
libc = CDLL('/lib/x86_64-linux-gnu/libc.so.6')
seed = 1
libc.srand(seed)
print(libc.rand())'''
#윈도우에서 srand값 가져오기
'''libc = CDLL("msvcrt")'''

 

'리버싱' 카테고리의 다른 글

파이썬 rol,ror함수 코드(구글링)  (0) 2022.02.17