您的位置:首页 > 编程语言 > PHP开发

用php进行md5解密的源码,亲测可用

2017-10-24 14:50 447 查看
1 <?php
2 $md5 = "c1c95b382230eb9e27a60c4baceb5f2e";
3 $uid = "hhp-ImZRY";
4 $token = strtolower(md5('1878399009'));
5 $url = "http://www.ttmd5.com/do.php?c=Api&m=crack&uid=$uid&token=$token&cipher=$md5";
6 $data = file_get_contents($url);
7 echo $data;
8 ?>


密文是c1c95b382230eb9e27a60c4baceb5f2e

1 {
2     "count": 1,
3     "data": [
4     {
5         "cipher": "c1c95b382230eb9e27a60c4baceb5f2e",
6         "plain": "1azu8uhn",
7         "flag": 1,
8         "time": 0
9     }
10     ]
11 }


结果是1azu8uhn

 

md5本身是不可逆的,但是我们可以使用ttmd5.com提供的接口进行破解,我试了下成功率还是挺高,普通的库是70%,那个账号现在还是能免费使用

接口文档参考下面的链接

http://www.ttmd5.com/api.php

 

另外找到的一篇文章

[php] view
plain copy

<?php  

$md5 = "<span style="font-family:monospace;color:#b750;font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 248);">3ec4900f17489377e48dee29f06a49e3</span>";  

$uid = "hhp-ImZRY";  

$token = strtolower(md5('1878399009'));  

$url = "http://www.ttmd5.com/do.php?c=Api&m=crack&uid=$uid&token=$token&cipher=$md5";  

$data = file_get_contents($url);  

echo $data;  

?>  

获得的结果

[html] view
plain copy

{  

"count": 1,  

"data": [  

{  

"cipher": "<span style="font-family:monospace;color:#b750;font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 248);">3ec4900f17489377e48dee29f06a49e3</span>",  

"plain": "<span style="font-family:monospace;color:#b750;font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 248);">cctvabde</span>",  

"flag": 1,  

"time": 0  

}  

]  

}  

md5是一张哈希算法,本身是不可逆的,但是我们可以使用ttmd5.com提供的接口进行破解,成功率在70%,也算是一种曲线

接口文档:http://www.ttmd5.com/api.php
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  md5 解密 源码 php