Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers

php_mt_seed - PHP mt_rand() seed cracker

php_mt_seed is a PHP mt_rand() seed cracker. In the most trivial invocation mode, it finds possible seeds given the very first mt_rand() output after possible seeding with mt_srand(). With advanced invocation modes, it is also able to match multiple, non-first, and/or inexact mt_rand() outputs to possible seed values.

php_mt_seed is written in C with optional SIMD intrinsics (SSE4.1/AVX, XOP, AVX2, MIC) and OpenMP. On a modern quad-core CPU, it is able to search the full 32-bit seed space in 1 minute (or in just 7 seconds on Xeon Phi).

You may view the latest README file, which provides php_mt_seed usage examples, as well as benchmarks on a variety of systems (ranging from quad-core CPU to 16-core server and to Xeon Phi). The README file is also included in the archive below.


This and older versions of php_mt_seed are also available from the Openwall file archive. The source code of php_mt_seed may be browsed via CVSweb. (You might find the older versions and revision history useful to better understand how php_mt_seed works and what optimizations have been made.)

Follow this link for information on verifying the signatures.

Reddit /r/netsec discussion on php_mt_seed.

Quick Comment:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ