# php\_mt\_seed - PHP mt\_rand() 随机数种子破解使用

**URL:** <https://forum.90sec.com/t/topic/1797>\
**Category:** 账号审核\
**Created:** [2021 年7 月 27 日 06:58 UTC](https://forum.90sec.com/t/topic/1797 "2021-07-27T06:58:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![jokerjq](https://forum.90sec.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jokerjq](https://forum.90sec.com/u/jokerjq)\
发布日期： [2021 年7 月 27 日 06:58 UTC](https://forum.90sec.com/t/topic/1797/1 "2021-07-27T06:58:27Z")

</div>

## 下载

[网站](https://www.openwall.com/php_mt_seed/)  
 ![在这里插入图片描述](https://forum.90sec.com/discuz-migration/attachments/0af786d629f3f85fe2a5ad88e3d5481a6997409f2e050dab963c16d679a9ad5a)

## 安装

解压  
 ![在这里插入图片描述](https://forum.90sec.com/discuz-migration/attachments/8b7d8127cfe0deb85b65db66c7f743bbaa90a8d894f7d4d1a236c07c30fe59d8)`tar zxvf php_mt_seed-4.0.tar.gz`

## 更新

安装的不是最新版本的，需要先进行更新  
 ![](https://forum.90sec.com/discuz-migration/attachments/19e9c87952d03f03911e2b876e682c83c474060bab767fab9bf002944e4e7f1a)`make`

更新后的文件夹中出现  
 ![在这里插入图片描述](https://forum.90sec.com/discuz-migration/attachments/6e8cacef90a6044d32af31db0cef5977d3079cbd52b84580dc3e70f8244de265)

出现可执行文件 php\_mt\_seed

## 权限升级

![在这里插入图片描述](https://forum.90sec.com/discuz-migration/attachments/9c404a4235dbfa43b63455ae73d0dd42671b3c862ae4689f4d1d9035f8461156)`chmod 777 php_mt_seed-4.0/`

准备完成开始输入起始的文件种子，得到结果  
 ![在这里插入图片描述](https://forum.90sec.com/discuz-migration/attachments/8e21bfc50b302f97cc16cff1188d4660ebccb9cb49034d7e3981f5cc2af2677c)

## 执行种子

生成正确的种子

```powershell
<?php
mt_srand(3701604078);
echo mt_rand()."\n";
echo mt_rand()+mt_rand();
?>

```

## 执行结果

![在这里插入图片描述](https://forum.90sec.com/discuz-migration/attachments/5732cdf10bfe9e8d34da01a4048e4667ec0474a62dd1355c38f41a9354742d45)
