资源简介
unlocker-master最新版.rar
代码片段和文件信息
#!/usr/bin/env python
“““
The MIT License (MIT)
Copyright (c) 2014-2016 Dave Parsons
Permission is hereby granted free of charge to any person obtaining a copy
of this software and associated documentation files (the ‘Software‘) to deal
in the Software without restriction including without limitation the rights
to use copy modify merge publish distribute sublicense and/or sell
copies of the Software and to permit persons to whom the Software is
furnished to do so subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ‘AS IS‘ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
vSMC Header Structure
Offset Length Struct Type Description
----------------------------------------
0x00/00 0x08/08 Q ptr Offset to key table
0x08/08 0x04/4 I int Number of private keys
0x0C/12 0x04/4 I int Number of public keys
vSMC Key Data Structure
Offset Length Struct Type Description
----------------------------------------
0x00/00 0x04/04 4s int Key name (byte reversed e.g. #KEY is YEK#)
0x04/04 0x01/01 B byte Length of returned data
0x05/05 0x04/04 4s int Data type (byte reversed e.g. ui32 is 23iu)
0x09/09 0x01/01 B byte Flag R/W
0x0A/10 0x06/06 6x byte Padding
0x10/16 0x08/08 Q ptr Internal VMware routine
0x18/24 0x30/48 48B byte Data
“““
from __future__ import print_function
import struct
import sys
if sys.version_info < (2 7):
sys.stderr.write(‘You need Python 2.7 or later\n‘)
sys.exit(1)
def bytetohex(data):
if sys.version_info > (3 0):
# Python 3 code in this block
return ““.join(“{:02X} “.format(c) for c in data)
else:
# Python 2 code in this block
return ““.join(“{:02X} “.format(ord(c)) for c in data)
def printkey(i offset smc_key smc_data):
print(str(i + 1).zfill(3)
+ ‘ ‘ + hex(offset)
+ ‘ ‘ + smc_key[0][::-1].decode(‘UTF-8‘)
+ ‘ ‘ + str(smc_key[1]).zfill(2)
+ ‘ ‘ + smc_key[2][::-1].replace(b‘\x00‘ b‘ ‘).decode(‘UTF-8‘)
+ ‘ ‘ + ‘{0:#0{1}x}‘.format(smc_key[3] 4)
+ ‘ ‘ + hex(smc_key[4])
+ ‘ ‘ + bytetohex(smc_data))
def dumpkeys(f key):
# Setup struct pack string
key_pack = ‘=4sB4sB6xQ‘
# Do Until OSK1 read
i = 0
while True:
# Read key into struct str and data byte str
offset = key + (i * 72)
f.seek(offset)
smc_key = struct.unpack(key_pack f.read(24))
smc_data = f.read(smc_key[1])
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 375 2017-12-07 23:31 unlocker-master最新版\.gitattributes
....... 58 2017-12-07 23:31 unlocker-master最新版\.gitignore
文件 6790064 2018-11-21 01:16 unlocker-master最新版\backup\vmwareba
文件 20864944 2018-11-21 01:28 unlocker-master最新版\backup\x64\vmware-vmx-debug.exe
文件 18723248 2018-11-21 01:29 unlocker-master最新版\backup\x64\vmware-vmx-stats.exe
文件 16090032 2018-11-21 01:28 unlocker-master最新版\backup\x64\vmware-vmx.exe
....... 2878 2017-12-07 23:31 unlocker-master最新版\darwin.md
文件 3912925 2017-12-07 23:31 unlocker-master最新版\dumpsmc.exe
文件 5598 2017-12-07 23:31 unlocker-master最新版\dumpsmc.py
文件 257 2017-12-07 23:31 unlocker-master最新版\esxi\esxi-build.sh
文件 1531 2017-12-07 23:31 unlocker-master最新版\esxi\esxi-config.py
文件 597 2017-12-07 23:31 unlocker-master最新版\esxi\esxi-install.sh
文件 204 2017-12-07 23:31 unlocker-master最新版\esxi\esxi-smctest.sh
文件 377 2017-12-07 23:31 unlocker-master最新版\esxi\esxi-uninstall.sh
文件 1792 2017-12-07 23:31 unlocker-master最新版\esxi\local-prefix.sh
....... 75 2017-12-07 23:31 unlocker-master最新版\esxi\local-suffix.sh
文件 16222 2017-12-07 23:31 unlocker-master最新版\esxi\local.sh
文件 8817861 2017-12-07 23:31 unlocker-master最新版\gettools.exe
文件 5665 2017-12-07 23:31 unlocker-master最新版\gettools.py
文件 1096 2019-02-26 21:23 unlocker-master最新版\license.txt
文件 977 2017-12-07 23:31 unlocker-master最新版\lnx-install.sh
文件 900 2017-12-07 23:31 unlocker-master最新版\lnx-uninstall.sh
文件 455 2017-12-07 23:31 unlocker-master最新版\lnx-update-tools.sh
文件 789 2017-12-07 23:31 unlocker-master最新版\osx-install.sh
文件 751 2017-12-07 23:31 unlocker-master最新版\osx-uninstall.sh
....... 5101 2017-12-07 23:31 unlocker-master最新版\readme.txt
....... 3006 2017-12-07 23:31 unlocker-master最新版\test-unlocker.py
文件 3352576 2019-02-25 23:48 unlocker-master最新版\tools\darwin.iso
文件 256 2019-02-25 23:48 unlocker-master最新版\tools\darwin.iso.sig
文件 3352576 2019-02-25 23:49 unlocker-master最新版\tools\darwinPre15.iso
............此处省略16个文件信息
- 上一篇:chaoshimavcen.rar
- 下一篇:mongodbmanagerfree
相关资源
- Nginx核心知识100讲全套课件.zip
- navicat.11.2.16.premium_cs_x64破解版.zip
- 凸优化_Boyd_王书宁译.rar
- 云盘.rar
- Xshell5.exe
- 20170121135652618.rar
- DiskGenius4.7.0专业版.rar
- AlphaControlsv11.16StableFullSource(D5和D10
- 雅奇880官方开源赠品30多个雅奇4.rar
- 2009_LabVIEW编程样式_清晰版.pdf
- tiger_newhu5.99.24.zip
- 大数据架构详解:从数据获取到深度
- 程序是怎样跑起来的_PDF电子书带书签
- MongodbSample.rar
- EtherCATSlaveStackCodeTool5.12.rar
- 重构_改善既有代码的设计.rar
- 矩阵分析与应用第二版高清带书签.
- 通达网络智能办公系统OfficeAnywhere20
- 入门到实践.rar
- vRealizeAutomation7.0快速部署手册v1.3.pd
- 迅捷pdf转换器.7z
- FLACFLAC3D基础与应用-陈育民.pptx
- Location12.2.rar
- proteus仿真stm32测距.zip
- 《探索式软件测试》高清影印带书签
- Microsoft-70-483.pdf
- 微积分之屠龙宝刀美C.亚当斯等上.p
- F3arRa1n_Windows3.4.3.zip
-
zw_baidu_38396237-10813429-weibodataba
se.zi - zw_xqy987967363-10661999-信号与系统.zip
评论
共有 条评论