mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
11 lines
316 B
Python
11 lines
316 B
Python
|
|
# Phase 11 (Track J.9) — Python CRYPTO vuln fixture.
|
||
|
|
#
|
||
|
|
# Uses `random.randint(0, 0xFFFF)` (a non-CSPRNG) to derive a 16-bit
|
||
|
|
# key; the harness's instrumented key path writes a `ProbeKind::WeakKey`
|
||
|
|
# probe and the `WeakKeyEntropy` oracle fires.
|
||
|
|
import random
|
||
|
|
|
||
|
|
|
||
|
|
def run(_value):
|
||
|
|
return random.randint(0, 0xFFFF)
|