为OS X-KVM,Docker-OS X,OpenCore生成完整的序列号集

2021-03-15 15:55:53

该项目提供了两种工具,用于为Hackintosh,OpenCore,Docker-OSX和OSX-KVM生成序列号。

条款&条件:序列号是在糟糕的演员之前在软件中进行IMessage安全研究和发现漏洞的重要组成部分,因此,您必须同意Apple'安全赏金计划。

这些脚本是由@sickcodes https://twitter.com/sickcodes编写的,以在Docker-OSX中自动化在运行时生成唯一值。

如果这是第一次,只需在下面运行第一个命令,没有任何选项,您将获得1个完整的集合。

https://github.com/kholia/osx-kvm:"在qemu / kvm上运行麦克斯。现在与Opencore + Big Sur支持!只有商业(已付费)支持。"

https://github.com/sickcodes/docker-osx:"在Docker中运行Mac!在Docker中运行靠近原生OSX-KVM! X11转发!用于OS X的CI / CD!"

#ubuntu,debian,popsudo apt更新 - udo apt安装libguestfs-tools build-enginess wget git linux-generic sudo -y#fedora,Rhel,centosudo yum安装libguestfs libguestfs-tools wget git kernel-devel sudo-useudo yum groupinstall&# 39;开发工具' -y#arch,manjarosudo pacman -sy libguestfs wget git base-devel linux sudo

#制作5个串行集合#,但也使每个SET#和OpenCore-Nopicker.qcow2为每个串行集合制作../ generate-unique-machine-values.sh \ -c 50 \ -create-plists \ - -Create-Bootdisks.

如果您希望每次自动创建QCOW BootDisk,您可以使用占位符并让此脚本在每次更改任何内容时都会构建图像。

如果要使用占位符,您可以向此回购中的任何一个脚本提供:

#制作5个串行集合#但也使用我的config.plist for每个设置#,为每个集合制作qcow2图像!./ generate-unique-machine-values.sh \ -c 5 \ --custom-plist =。/ my_config .plist \ -create-bootdisks

< key> mlb< / key> <字符串> {{board_serial}}< / string> < key> ROM< / key> <数据> {{rom}}< / data> < key> spoofvendor< / key> <真/> < key> systemproductname< / key> <字符串> {{device_model}}< / string> < key> systemserialnumber< / key> <字符串> {{序列}}< / string> < key> systemuid< / key> < string> {{uuid}}< / string> ...... ......< key>分辨率< / key> <字符串> {{宽度}} x {{height}} @ 32

一般选项: - Count,-N,-C< count>生成--model,-m< model&gt的序列号数。设备模型,例如' imacpro1,1' --csv< filename>可选地更改CSV输出文件名--TSV< filename>可选地更改TSV输出文件名 - Output-Dir< directory>可选地更改脚本输出位置--width< string>分辨率x轴长度在px中,默认为1920 --height< string> PX中的分辨率Y轴长度,默认为1080 - 仪 - Plist-URL< url>通过URL --master-plist< filename&gt指定备用母版本。可选地更改输入plist --custom-plist< filename>与-master-plist --output-bootdisk< filename&gt相同。可选地更改bootdisk filename --envs创建所有相应的摘要envs -plists创建所有相应的config.plists --bootdisks创建所有相应的bootdisks [slow] --help,-h,只有您只有当您才能显示此帮助和ExitAditional选项创建一个串行集:--output-bootdisk< filename>可选地更改bootdisk filename --output-env< filename> (可选)更改序列版env filenameCustom plist占位符:{{device_model}},{{boarial}},{{board_serial}} {{uuid}},{{uuid}},{{worm}},{{widey}},{{height}}示例:./generate-unique-machine-values.sh - count 1 -plists --bootdisks --envsdefaults: - 一个串行,for' imacpro1,1',在当前工作目录中 - CSV和TSV输出 - in ./plists/& Bootdisks in ./bootdisks/& envs ./envs - 如果设置--bootdisk名称,则假定--bootdisks - 如果设置 - 客户,则假定 - 如果设置 - 如果设置 - Output-env,则假设--envs

如果您已经知道序列号,或者您在过去的上面生成了它们,那么您可以使用此脚本:

必需的选项:--Model< string>设备模型,例如' imacpro1,1' - 硒< string>设备序列号 - 板串行< string>主逻辑板序列号(MLB) - uuid< string> SMBIOS UUID(SMUUID) - MAC地址< String>用于MAC地址和设置ROM ROM的用于均多殖民中可选选项:--Width< integer>分辨率X轴长度在PX中,默认为1920 --Height<整数> PX中的分辨率Y轴长度,默认为1080 - 仪 - Plist-URL< url>通过URL --Custom-plist< filename&gt指定备用母版本。 || - Master-plist< filename>可选地更改输入plist。 --output-bootdisk< filename> (可选)更改BootDisk Filename - Output-Plist< filename>可选地更改输出plist文件名--help,-h,帮助显示此帮助和退出窗口:{{device_model}},{{serial}},{{board_serial},{{uuid}},{{rom}}, {{widey}},{{height}}

custom_plist = https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist./generate-pecific-bootdisk.sh \ --input-plist-url =&#34 ; $ {custom_plist}" \ --MODEL IMACPRO1,1 \ -Serial C02TW0WAHX87 \ - 串口C027251024NJG36UE \ --UUUID 5CCB366D-9118-4C61-A00A-E5BAF3Bed451 \ - MAC-Address A8:5C:2C:9A:46:2F \ --output-bootdisk ./opencore-nopicker.qcow2 \ - width 1920 \ --height 1080

Generate_Unique用作Docker参数,以在运行时随机生成1,适用于每个新容器。

generate_specific用于指定已知的模型,串行,板序列,UUID和MAC地址。

[[" $ {generate_unique}" == TRUE]]&& {\ ./docker-osx/custom/generate-unique-machine-values.sh \ --master-plist-url =" $ {master_plist_url}" \ --count 1 \ --tsv ./serial.tsv \ --bootdisks \ --width" $ {width:-1920}" \ --height" $ {高度:-1080}" \ --output-bootdisk" $ {bootdisk:= / home / arch / osx-kvm / opencore-catalina / apencore.qcow2}" \ --output-env" $ {env:= / env}" \ } \; [[" $ {generate_specific}" == TRUE]]&& {\ source" $ {env:= / env}" 2> / dev / null \; ./docker-osx/custom/generate-pecific-bootdisk.sh \ --master-plist-url =" $ {master_plist_url}" \ --Model" $ {device_model}" \ -serial" $ {序列}" \ - 串口" $ {board_serial}" \ - uuid" $ {uuid}" \ --mac-address" $ {mac_address}" \ - Width" $ {width:-1920}" \ --height" $ {高度:-1080}" \ --output-bootdisk" $ {bootdisk:= / home / arch / osx-kvm / opencore-catalina / apencore.qcow2}"