altf4 / untwister

Seed recovery tool for PRNGs
GNU General Public License v3.0
367 stars 42 forks source link

Fails to find seed if input is too large #48

Open FalcoGer opened 2 years ago

FalcoGer commented 2 years ago

If you generate input files that are too large, then the application fails to find the seed.

untwister -g 123456 -D 50 > seed_123456_50.txt
untwister -i seed_123456_50.txt -b -S 200000

will find the seed reasonably quickly.

untwister -i seed_123456_50.txt -b -S 200000
[*] Skipping inference attack...
[*] Looking for seed using glibc-rand
[*] Spawning 4 worker thread(s) ...
[*] Completed in 0 second(s)
[$] Found seed 123456 with a confidence of 100.00%

However

untwister -g 123456 -D 20000 > seed_123456_20000.txt
untwister -i seed_123456_20000.txt -b -S 200000
[*] Skipping inference attack...
[*] Looking for seed using glibc-rand
[*] Spawning 4 worker thread(s) ...
[*] Completed in 1 second(s)

fails to find the seed.