Files
CTF/HTB/challenges/reversing/Simple Encryptor/rev_simpleencryptor/ape.py
Simon 82b0759f1e init htb
old htb folders
2023-08-29 21:53:22 +02:00

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))