# 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()
'리버싱' 카테고리의 다른 글
pyc 분석 (0) | 2022.08.16 |
---|---|
arm bl 함수 호출 (0) | 2022.03.12 |
ptrace(PTRACE_TRACEME, ...) (0) | 2022.01.22 |
cpp operator (0) | 2021.11.29 |
BYTE 함수 (0) | 2021.11.29 |