当前位置: 首页 > news >正文

DigitalProductId解密算法php版


<?php
// 使用数组字面量
$digits = ['B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'M', 'P', 'Q', 'R','T', 'V', 'W', 'X', 'Y', '2', '3', '4', '6', '7', '8', '9'];
//foreach ($digits as $digit) {
//    echo $digit."<br>";
//}$hexPid=array(0xc2,0x49,0x4b,0xcc,0x60,0x34,0x09,0xcd,0x96,0xf7,0xec,0x94,0x0e,0x97,0x02);$decodedChars= array_fill(0, 29, "a"); // 创建一个包含三个 "fruit" 的数组//print_r($decodedChars);        
//print_r($hexPid[0]);
//    echo "<br>";
//print_r($hexPid);
$decodeLength = 29; 
$decodeStringLength = 15;for ( $i = $decodeLength - 1;$i >= 0; $i--){// Every sixth char is a separator.if (($i + 1) % 6 == 0){$decodedChars[$i] = '-';}else{// Do the actual decoding.$digitMapIndex = 0;for ( $j = $decodeStringLength - 1; $j >= 0; $j--){$byteValue = ($digitMapIndex << 8) | $hexPid[$j];//echo $byteValue."<br>";               $hexPid[$j] = ($byteValue / 24);$digitMapIndex = $byteValue % 24;//echo "digitMapIndex=".$digitMapIndex."<br>";   }$decodedChars[$i] = $digits[$digitMapIndex];}}for ( $i=0;$i <= $decodeLength - 1; $i++){echo $decodedChars[$i];}//print_r($decodedChars);?>

运行结果:xp sp3英文版的一个密钥

QC986-27D34-6M3TY-JJXP9-TBGMD

 $hexPid=array(0xc2,0x49,0x4b,0xcc,0x60,0x34,0x09,0xcd,0x96,0xf7,0xec,0x94,0x0e,0x97,0x02);

修改为你的注册表中的DigitalProductId的偏移0x34到0x43的15个字节,导出到pid.reg,

然后拷贝到记事本,

c2,49,4b,cc,60,34,09,cd,96,f7,ec,94,0e,97,02

添加上0x,构造一个$hexpid数组。

 $hexPid=array(0xc2,0x49,0x4b,0xcc,0x60,0x34,0x09,0xcd,0x96,0xf7,0xec,0x94,0x0e,0x97,0x02);

注册表位置:

\\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion 中的DigitalProductId 值。

可以在下面的网址在线运行:

PHP 在线工具 | 菜鸟工具

在线运行PHP

运行截图:

http://www.xdnf.cn/news/1259965.html

相关文章:

  • 三种经典寻路算法对比
  • 在 Mac 上安装 IntelliJ IDEA
  • 2025产品经理接单经验分享与平台汇总
  • 2025最新版天猫图片搜索API全解析:从图像识别到商品匹配实战
  • TensorFlow深度学习实战(29)——自监督学习(Self-Supervised Learning)
  • 存储管理、XFS 增量备份恢复、LVM
  • 【Qt开发】常用控件(二) -> enabled
  • GoLand 项目从 0 到 1:第六天 —— 权限接口开发与问题攻坚
  • npm run 常见脚本
  • HarmonyOS SDK助力讯飞听见App能力建设
  • Java技术栈/面试题合集(21)-Docker篇
  • 仅需8W,无人机巡检系统落地 AI 低空智慧城市!可源码交付
  • ADB打印设备日志相关
  • WWDC 25 玻璃态星际联盟:SwiftUI 视图协同“防御协议”
  • 深入理解 robots.txt:网站与搜索引擎的 “沟通协议”
  • Linux文档压缩打包与安装
  • zookeeper3.8.4安装以及客户端C++api编译
  • 天翼云与飞轮科技达成战略合作,共筑云数融合新生态
  • 2025 蓝桥杯C/C++国B 部分题解
  • 【Mybatis入门】配置Mybatis(IDEA)
  • LabVIEW多循环架构
  • [深度学习] 大模型学习4-RAG技术全景解析
  • 机械学习--k-means
  • K-Means 聚类
  • SonarQube 扫描多个微服务模块
  • 二、k8s 1.29 之 网络
  • MySQL definer does not exist 问题分析
  • 计算机网络:到底什么是可变长子网掩码VLSM?
  • 自适应反步控制:理论与设计
  • 【洛谷题单】--分支结构(二)