惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Cisco Blogs
NISL@THU
NISL@THU
G
GRAHAM CLULEY
T
Threatpost
I
Intezer
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
Cisco Talos Blog
Cisco Talos Blog
P
Privacy & Cybersecurity Law Blog
Security Latest
Security Latest
P
Palo Alto Networks Blog
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
AI
AI
Help Net Security
Help Net Security
Forbes - Security
Forbes - Security
T
The Exploit Database - CXSecurity.com
月光博客
月光博客
The GitHub Blog
The GitHub Blog
aimingoo的专栏
aimingoo的专栏
C
CERT Recently Published Vulnerability Notes
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
N
News and Events Feed by Topic
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Scott Helme
Scott Helme
A
About on SuperTechFans
N
Netflix TechBlog - Medium
TaoSecurity Blog
TaoSecurity Blog
V
V2EX
MongoDB | Blog
MongoDB | Blog
AWS News Blog
AWS News Blog
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
O
OpenAI News
Y
Y Combinator Blog
S
Securelist
GbyAI
GbyAI
D
Docker
SecWiki News
SecWiki News
The Hacker News
The Hacker News
有赞技术团队
有赞技术团队
T
Tenable Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
P
Privacy International News Feed
S
Security Affairs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客 on 打工人日志

k8s RKE2 cilium L2 + envoy gateway 安装配置 k8s RKE2 vSphere 存储配置 OpenClaw 全能指南:从安装到进阶自动化实战 (2026 最终版) Kubernetes — skywalking + banyanDB APM监控部署 Kubernetes — promtail + loki + grafana 日志系统部署 k8s master 节点 Unauthorized Kubernetes — metalLB + Traefik 部署 Kubernetes — SSL 证书自动更新 Kubernetes — RKE2 + kube-vip + cilium 部署 使用TLSv1.3 升级nginx和openssl Proxmox VE(PVE) 更新到最新版本 kindle 邮件发送失败,错误代码E999 metallb + ingress-nginx + argocd 本地部署 iStoreOS(旁路由)使用openclash实现dns劫持 异常流量分析:图片库服务黑客入侵 openwrt 硬盘扩容 搭建ip地址检索服务 Kubernetes — k8s 手动安装 1.17.9 SELinux 问题:导致端口无法创建,无法访问 【福利】免费!本地部署!去除视频中移动的物体 通知:《打工人日报》迁移到独立板块 KyBook 3 | calibre-web - IOS系统最佳图书伴侣 Tmux 安装和使用教程 DockerHub 加速镜像部署 - 使用cloudflare 代理 docker的零停机部署 SD-webui 批量处理图片 ubuntu 安装 ComfyUI ubuntu 安装 stable-diffusion-webui 测试策略:微服务架构 单元测试:测试单元质量提升 端到端测试:模拟用户体验 Kubernetes — containerd 安装和部署 CI/CD 可观察性-基于grafana Argo cd 安装和部署 linux服务器进程打开文件过多导致服务异常 使用 ElasticSearch Curator 7天定期删除日志 sonarqube docker安装和配置 SSH 通过 443 端口连接 GitHub iOS 17 「待机显示」适配普通 iPhone(非 Pro/Max),屏幕在充电时常亮 GNU/Linux 一键更换系统软件源脚本 解决Elasticsearch索引只读(read-only) 【福利】埃隆·马斯克传 [沃尔特·艾萨克森] 在线下载 【破解】小鹏P5和小鹏G9开启adb和网络adb Kubernetes — kubecost 分析 Kubernetes 成本 3D Gaussian Splatting:3D模型渲染 Linux 系统收包流程以及内核参数优化 2023亚运会电竞门票民购买指南(报名+抽签) Vue3 + vite + nginx项目部署后404问题 大麦抢票辅助软件(福利 TFBOYS十年之约演唱会 2023 全机位 视频) 黑群晖最新安装教程 Ansible部署ceph集群 最好的微信朋友圈集赞神器-福利推荐 推荐一下 容器云资源 2010年的天涯神贴聊房价 如何礼貌回绝不合理的需求 nginx 配置和编译 github 国内代理访问下载 使用scrapy-redis实现增量爬取 逆境和成长-2022年终总结 优雅的使用Conda管理python环境 Jenkins 编译Android apk 流水线 Kubernetes — 更新证书 shell功能脚本集合 Nexus3 使用和部署 githubAction set-output弃用错误 Kubernetes — Rook云存储介绍和部署 Kubernetes — 基于K8S搭建Ceph分布式存储 Kubernetes — 探针和生命周期 Kubernetes — 开放标准(OCI、CRI、CNI、CSI、SMI、CPI)概述 kubernetes 部署插件 (Flannel、Web UI、CoreDNS、Ingress Controller) Cloudflare Zero Trust 内网穿透 k8s CNI 问题 连接认证失效 k8s.gcr.io国内无法连接解决方法 headscale 部署使用 羊了个羊小程序 破解通关 K8S 问题排查:cgroup 内存泄露问题 RocketMQ k8s部署 4主4从集群 docker 问题处理 kubernetes 存储 linux服务器 删除空间却未释放 kubernetes 从1.23.x 升级到 1.24.x 编写 kubernetes 资源描述文件 nginx ssh-key connection exception kubernetes manual expansion VSCode插件推荐=> Code Runner ant build.xml 编写 kubernetes 调度过程 记录一次上门打散工 k8s本地联调神器kt-connect Ant中如何添加第三方jar包依赖 OpenELB:让k8s私有环境对外暴露端口 linux 网络测速 安装 docker 出现 ERROR: Unsupported distribution 'ol' 问题 logrotate 日志滚动的使用 nginx 编译参数详解 nginx 重写规则 rewrite模块 nginx.conf 配置文件详解 rsync 文件同步 163企业邮箱设置教程 2021年第50周记
Navicat 查看导出连接的密码 | navicat查看密码方案
2022-02-08 · via 博客 on 打工人日志

解决问题:

我们经常使用 navicat 连接数据库,有时候时间久了之后,会忘记之前的密码,那么现在我们有办法获得只要正常连接的数据库的密码

步骤:

  1. 导出连接 connections.ncx,拿到保存到本地的 connections.ncx 文件中的 Password,粘贴到下面的代码中
  2. 登陆https://tool.lu/coderunner/,使用 PHP 在线运行工具,粘贴下面添加密码后的代码
    备用工具网址(https://zixuephp.net/tool-runcode.html)
  1<?php
  2class NavicatPassword
  3{
  4    protected $version = 0;
  5    protected $aesKey = 'libcckeylibcckey';
  6    protected $aesIv = 'libcciv libcciv ';
  7    protected $blowString = '3DC5CA39';
  8    protected $blowKey = null;
  9    protected $blowIv = null;
 10
 11    public function __construct($version = 12)
 12    {
 13        $this->version = $version;
 14        $this->blowKey = sha1('3DC5CA39', true);
 15        $this->blowIv = hex2bin('d9c7c3c8870d64bd');
 16    }
 17
 18    public function encrypt($string)
 19    {
 20        $result = FALSE;
 21        switch ($this->version) {
 22            case 11:
 23                $result = $this->encryptEleven($string);
 24                break;
 25            case 12:
 26                $result = $this->encryptTwelve($string);
 27                break;
 28            default:
 29                break;
 30        }
 31
 32        return $result;
 33    }
 34
 35    protected function encryptEleven($string)
 36    {
 37        $round = intval(floor(strlen($string) / 8));
 38        $leftLength = strlen($string) % 8;
 39        $result = '';
 40        $currentVector = $this->blowIv;
 41
 42        for ($i = 0; $i < $round; $i++) {
 43            $temp = $this->encryptBlock($this->xorBytes(substr($string, 8 * $i, 8), $currentVector));
 44            $currentVector = $this->xorBytes($currentVector, $temp);
 45            $result .= $temp;
 46        }
 47
 48        if ($leftLength) {
 49            $currentVector = $this->encryptBlock($currentVector);
 50            $result .= $this->xorBytes(substr($string, 8 * $i, $leftLength), $currentVector);
 51        }
 52
 53        return strtoupper(bin2hex($result));
 54    }
 55
 56    protected function encryptBlock($block)
 57    {
 58        return openssl_encrypt($block, 'BF-ECB', $this->blowKey, OPENSSL_RAW_DATA|OPENSSL_NO_PADDING);
 59    }
 60
 61    protected function decryptBlock($block)
 62    {
 63        return openssl_decrypt($block, 'BF-ECB', $this->blowKey, OPENSSL_RAW_DATA|OPENSSL_NO_PADDING);
 64    }
 65
 66    protected function xorBytes($str1, $str2)
 67    {
 68        $result = '';
 69        for ($i = 0; $i < strlen($str1); $i++) {
 70            $result .= chr(ord($str1[$i]) ^ ord($str2[$i]));
 71        }
 72
 73        return $result;
 74    }
 75
 76    protected function encryptTwelve($string)
 77    {
 78        $result = openssl_encrypt($string, 'AES-128-CBC', $this->aesKey, OPENSSL_RAW_DATA, $this->aesIv);
 79        return strtoupper(bin2hex($result));
 80    }
 81
 82    public function decrypt($string)
 83    {
 84        $result = FALSE;
 85        switch ($this->version) {
 86            case 11:
 87                $result = $this->decryptEleven($string);
 88                break;
 89            case 12:
 90                $result = $this->decryptTwelve($string);
 91                break;
 92            default:
 93                break;
 94        }
 95
 96        return $result;
 97    }
 98
 99    protected function decryptEleven($upperString)
100    {
101        $string = hex2bin(strtolower($upperString));
102
103        $round = intval(floor(strlen($string) / 8));
104        $leftLength = strlen($string) % 8;
105        $result = '';
106        $currentVector = $this->blowIv;
107
108        for ($i = 0; $i < $round; $i++) {
109            $encryptedBlock = substr($string, 8 * $i, 8);
110            $temp = $this->xorBytes($this->decryptBlock($encryptedBlock), $currentVector);
111            $currentVector = $this->xorBytes($currentVector, $encryptedBlock);
112            $result .= $temp;
113        }
114
115        if ($leftLength) {
116            $currentVector = $this->encryptBlock($currentVector);
117            $result .= $this->xorBytes(substr($string, 8 * $i, $leftLength), $currentVector);
118        }
119
120        return $result;
121    }
122
123    protected function decryptTwelve($upperString)
124    {
125        $string = hex2bin(strtolower($upperString));
126        return openssl_decrypt($string, 'AES-128-CBC', $this->aesKey, OPENSSL_RAW_DATA, $this->aesIv);
127    }
128};
129
130
131//需要指定navacat版本两种,11或12
132$navicatPassword = new NavicatPassword(12);
133
134//解密,括号里面写入navicat加密后的密码
135$decode = $navicatPassword->decrypt('E75BF077AB8BAA3AC2D5');
136echo $decode."\n";
137?>
  1. 点击执行之后,就会得到真实密码