查看MySql数据库密码

news/2024/11/15 3:36:56/
  • 第一步:

        导出链接,导出连接获取到 connections.ncx 文件

         这里需要勾选 导出密码!!! 不然导出的文件里不包含加密的密码

  • 第二步:

        找到加密密码,进行破解

        在导出的connections.ncx文件中找到password,然后复制出来

  • 第三步

        打开这个网址:代码在线运行 - 在线工具 (tool.lu)  将如下代码复制进去, 

<?php
class NavicatPassword
{protected $version = 0;protected $aesKey = 'libcckeylibcckey';protected $aesIv = 'libcciv libcciv ';protected $blowString = '3DC5CA39';protected $blowKey = null;protected $blowIv = null;public function __construct($version = 12){$this->version = $version;$this->blowKey = sha1('3DC5CA39', true);$this->blowIv = hex2bin('d9c7c3c8870d64bd');}public function encrypt($string){$result = FALSE;switch ($this->version) {case 11:$result = $this->encryptEleven($string);break;case 12:$result = $this->encryptTwelve($string);break;default:break;}return $result;}protected function encryptEleven($string){$round = intval(floor(strlen($string) / 8));$leftLength = strlen($string) % 8;$result = '';$currentVector = $this->blowIv;for ($i = 0; $i < $round; $i++) {$temp = $this->encryptBlock($this->xorBytes(substr($string, 8 * $i, 8), $currentVector));$currentVector = $this->xorBytes($currentVector, $temp);$result .= $temp;}if ($leftLength) {$currentVector = $this->encryptBlock($currentVector);$result .= $this->xorBytes(substr($string, 8 * $i, $leftLength), $currentVector);}return strtoupper(bin2hex($result));}protected function encryptBlock($block){return openssl_encrypt($block, 'BF-ECB', $this->blowKey, OPENSSL_RAW_DATA|OPENSSL_NO_PADDING);}protected function decryptBlock($block){return openssl_decrypt($block, 'BF-ECB', $this->blowKey, OPENSSL_RAW_DATA|OPENSSL_NO_PADDING);}protected function xorBytes($str1, $str2){$result = '';for ($i = 0; $i < strlen($str1); $i++) {$result .= chr(ord($str1[$i]) ^ ord($str2[$i]));}return $result;}protected function encryptTwelve($string){$result = openssl_encrypt($string, 'AES-128-CBC', $this->aesKey, OPENSSL_RAW_DATA, $this->aesIv);return strtoupper(bin2hex($result));}public function decrypt($string){$result = FALSE;switch ($this->version) {case 11:$result = $this->decryptEleven($string);break;case 12:$result = $this->decryptTwelve($string);break;default:break;}return $result;}protected function decryptEleven($upperString){$string = hex2bin(strtolower($upperString));$round = intval(floor(strlen($string) / 8));$leftLength = strlen($string) % 8;$result = '';$currentVector = $this->blowIv;for ($i = 0; $i < $round; $i++) {$encryptedBlock = substr($string, 8 * $i, 8);$temp = $this->xorBytes($this->decryptBlock($encryptedBlock), $currentVector);$currentVector = $this->xorBytes($currentVector, $encryptedBlock);$result .= $temp;}if ($leftLength) {$currentVector = $this->encryptBlock($currentVector);$result .= $this->xorBytes(substr($string, 8 * $i, $leftLength), $currentVector);}return $result;}protected function decryptTwelve($upperString){$string = hex2bin(strtolower($upperString));return openssl_decrypt($string, 'AES-128-CBC', $this->aesKey, OPENSSL_RAW_DATA, $this->aesIv);}
};//需要指定版本两种,11或12
//$navicatPassword = new NavicatPassword(11);
//这里我指定的12的版本,原先指定的11,执行之后的密码是乱码
$navicatPassword = new NavicatPassword(12);//解密
//$decode = $navicatPassword->decrypt('15057D7BA390');
$decode = $navicatPassword->decrypt('复制出来的密码');
echo $decode."\n";
?>
  • 第四步

        指定版本11或12

  •  第五步

                粘贴第二步加密密码

  • 第六步

        点击在线运行工具执行按钮,解密成功,在右侧查看解密后的密码 


http://www.ppmy.cn/news/753421.html

相关文章

单片机第一季:零基础4——数码管

1,第七章&#xff1a;静态数码管和动态数码管 工作原理&#xff1a; (1)亮灭原理&#xff08;其实就是内部的照明LED&#xff09;&#xff1b; (2)显示数字&#xff08;甚至文字&#xff09;原理&#xff1a;利用内部的LED的亮和灭让外部的组成数字的笔画显示或者不显示&#…

windows查看本机的IP地址

1.WINR组合键打开运行窗口 2.输入cmd进入命令提示符 3.输入ipconfig即可查看本机的IP地址

用cmd 查看本机的IP地址

1.在window下面按住windowR打开cmd: 2.在cmd下输入&#xff1a;ipconfig

windows 查看ip命令

ipconfig命令查看ip地址 详情查看windows如何查看自己的ip

cmd查看电脑ip配置

Windows查看ip: 使用WindowsR键打开“运行”窗口&#xff0c;然后输入cmd进入命令提示窗口 进入命令窗口之后&#xff0c;输入&#xff1a;ipconfig/all 回车即可看到整个电脑的详细的IP配置信息 IPv4地址是电脑的ip地址 物理地址&#xff0c;即MAC地址 Mac查看ip: 打开终端…

CMD查看进程端口、IP

1、使用netstat -an可以查看本机有哪些端口在监听 2、使用netstat -anb&#xff08;管理员权限下&#xff09;可以查看监听端口的pid&#xff0c;再结合任务管理器关闭不安全的端口。 3、假设要查看占用80端口的程序&#xff0c;那么在windows命令行窗口下执行&#xff1a; …

如何查看电脑ip和端口

1.查看电脑ip 使用WindowsR键打开“运行”窗口&#xff0c;然后输入CMD进入命令提示窗口&#xff0c;进入命令窗口之后&#xff0c;输入&#xff1a;ipconfig/all&#xff0c;按回车即可看到整个电脑的详细的IP配置信息。 2.查看电脑端口 使用WindowsR键打开“运行”窗口&…

查看电脑的IP和端口

1. 查看电脑IP 首先打开命令提示符cmd&#xff0c; 然后输入命令 ipconfig&#xff0c;如果是有线连接&#xff0c;请查看Local Area Connection/本地连接&#xff0c;如果是无线&#xff0c;请查看无线连接&#xff0c;如下所示&#xff0c;画红线的IPV4右侧的就是本机的IP&…