Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
darling — 面向 Linux 的 Darwin/macOS 仿真层 | Kitploit
工具/GitHubGitHub/darlinghq/darling
通用工具实用工具与框架
GitHubdarlinghq/darling

darling

面向 Linux 的 Darwin/macOS 仿真层

查看仓库网站
13.0k5141天前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Darling

Darling logo

Darling 是 macOS 应用程序的运行时环境。

请注意,目前大多数 GUI 应用程序无法运行。

下载

部分发行版的软件包可在 releases 页面下载。

构建说明

构建说明请访问 Darling Docs。

前缀 (Prefixes)

Darling 支持 DPREFIX,它与 WINEPREFIX 非常相似。它们是虚拟的“chroot”环境,具有类似 macOS 的文件系统结构,可以在其中安全地安装软件。默认的 DPREFIX 位置是 ~/.darling,可通过导出同名环境变量来更改。前缀会在首次使用时自动创建并初始化。

请注意,我们使用 overlayfs 来创建前缀,因此不支持将前缀放在 NFS 或 eCryptfs 等文件系统上。特别地,如果您的家目录是加密的,默认前缀位置将无法正常工作。

Hello world

让我们从一个 Hello world 开始:

root@kitploit:~
$ darling shell echo Hello world
Hello world

恭喜,您已通过 Darling 的 OS X 系统调用模拟和运行时库打印出了 Hello world。

安装软件

您可以使用 shell 内可用的 installer 工具安装 .pkg 软件包。它是 OS X 安装器的一个功能有限的简化版本:

root@kitploit:~
$ darling shell
Darling [~]$ installer -pkg mc-4.8.7-0.pkg -target /

上述示例中的 Midnight Commander 软件包可在 此处下载。

您可以使用 uninstaller 命令卸载和列出软件包。

使用 DMG 映像

可以在 darling shell 中使用 hdiutil 来挂载和卸载 DMG 映像。以下是如何安装 Xcode 及其工具链和 SDK 的方法(注意 Xcode 本身尚无法运行):

root@kitploit:~
Darling [~]$ hdiutil attach Xcode_7.2.dmg
/Volumes/Xcode_7.2
Darling [~]$ cp -r /Volumes/Xcode_7.2/Xcode.app /Applications
Darling [~]$ export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
Darling [~]$ echo 'void main() { puts("Hello world"); }' > helloworld.c
Darling [~]$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang helloworld.c -o helloworld
Darling [~]$ ./helloworld
Hello world

恭喜,您刚刚使用 Apple 的工具链编译并运行了自己的 Hello world 应用程序。

使用 XIP 归档

现在 Xcode 以 .xip 文件形式分发。可以使用 unxip 来安装它们:

root@kitploit:~
cd /Applications
unxip Xcode_11.3.xip
下载工具