百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

RustiveDump

> 安全
开源

LSASS 内存转储器仅使用 NTAPI,生成最小的 minidump。它可以编译为 shellcode (PIC),支持 XOR 加密和远程文件传输。

387 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

LSASS 内存转储器仅使用 NTAPI,生成最小的 minidump。它可以编译为 shellcode (PIC),支持 XOR 加密和远程文件传输。

RustiveDump

RustiveDump is a Rust-based tool designed to dump the memory of the lsass.exe process using only NT system calls. It creates a minimal minidump file from scratch, containing essential components like SystemInfo, ModuleList, and Memory64List, with support for XOR encryption and remote transmission.

This project is a personal learning experience, focusing on leveraging native Windows APIs for memory dumping and building a minimalistic minidump file entirely from the ground up.

Shellcode (PIC) - v.0.1.1

RustiveDump now implements the design of Rustic64, allowing it to be compiled as Position Independent Code (PIC), making it more versatile.

MSVC & Rust 2024 - v.0.1.2

The latest release of RustiveDump introduces support for Position Independent Code (PIC) compilation using the MSVC toolchain, along with updates to the Rust 2024 edition.

Key Features

  1. Position Independent Code (PIC):
    RustiveDump now implements the design of Rustic64, allowing it to be compiled as shellcode (PIC), making it more versatile.

  2. Cross-Compilation Support: RustiveDump now supports both GNU and MSVC targets, enabling cross-compilation and compatibility across different environments.

  3. NT System Calls for Everything: RustiveDump bypasses standard APIs and leverages NT system calls for all its operations.

  4. No-Std and CRT-Independent:
    RustiveDump is built using Rust's no_std feature, which removes reliance on Rust's standard library, and it's also CRT library independent. This resulting in a lean release build of only 18KB.

  5. Indirect NT Syscalls:
    The tool uses indirect syscalls, retrieving system service numbers (SSN) with techniques like Hell’s Gate, Halo's Gate, and Tartarus' Gate.

  6. Lean Memory Dump:
    RustiveDump generates a focused memory dump, containing only essential data (i.e., SystemInfo, ModuleList, and Memory64List), ensuring no bloated files—just enough to feed your memory analysis tools like Mimikatz or Pypykatz.

  7. XOR Encryption:
    RustiveDump can encrypt the dump file using XOR before saving or transmitting it, adding an extra layer of security to the dumped memory.

  8. Remote File Transmission:
    The dump file can be sent directly to a remote server using winsock APIs calls

  9. Debug Mode:
    The debug mode provides detailed logs of each step, which can be enabled during the build process.

How it works

  1. Enable SeDebugPrivilege:
    RustiveDump uses NtOpenProcessToken and NtAdjustPrivilegesToken to enable SeDebugPrivilege, allowing access to protected processes like lsass.exe.

  2. LSASS Process Access:
    The tool locates the lsass.exe process by querying NtQuerySystemInformation to get a snapshot of active processes, and then opens a process handle using NtOpenProcess with the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights.

  3. Memory Regions Handling:
    RustiveDump scans through the memory regions of the process using NtQueryVirtualMemory and dumps committed and accessible memory using NtReadVirtualMemory.

  4. Module Information:
    RustiveDump retrieves a list of modules loaded by lsass.exe using NtQueryInformationProcess to extract the ModuleList from the remote PEB (Process Environment Block).

  5. Memory Dump Creation:
    The dump is saved locally using NtCreateFile and NtWriteFile, or sent to a remote server. If desired, the dump can also be encrypted with XOR before being saved or transmitted.

Build

RustiveDump offers several configurable build options through cargo make to customize the behavior of the tool. You can enable features like XOR encryption, remote file transmission and verbose logging.

Available Features:

  • xor: Encrypts the dump file using XOR encryption.
  • debug: Enables detailed logs for each step of the process.
  • remote: Sends the dump file to a remote server via Winsock.
  • lsasrv: Filters the memory dump to include only the lsasrv.dll module from lsass.exe.

Build Options

To build RustiveDump with different combinations of features, use the following commands:

  • Basic build (save dump locally without additional features):

    bash
    cargo make
  • Build as Portable Executable (PE) with specific features

    bash
    cargo make --env FEATURES=xor,remote,lsasrv,debug
  • Build as Shellcode (PIC) for GNU target

    bash
    cargo make --env FEATURES=xor,remote pic-gnu
  • Build as Shellcode (PIC) for MSVC target

    bash
    cargo make --env FEATURES=xor,remote pic-msvc

Memory Dump File Structure

RustiveDump generates a minimalistic minidump file, including only the essential components for tools like Mimikatz and Pypykatz. The file consists of three core streams:

  1. SystemInfo Stream: OS version and architecture details.
  2. ModuleList Stream: Lists modules loaded in lsass.exe.
  3. Memory64List Stream: Memory regions from lsass.exe.

For more details on the Minidump file structure, see: Minidump (MDMP) format documentation.

Disclaimer

This project is intended for educational and research purposes only. RustiveDump is a minimalist memory dumper built for learning purposes. Use it responsibly, and remember, if you misuse it, that’s on you—not me!

Always follow ethical guidelines and legal frameworks when doing security research (and, you know, just in general).

Credits

  • Inspired by NativeDump by ricardojoserf. Thanks to the author for sharing their work.

Contributions

Contributions are welcome! If you want to help improve RustiveDump or report bugs, feel free to open an issue or a pull request in the repository.

Changelog

See the full list of changes in the Changelog.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustlsass-dumpoffensive-securityposition-independent-coderedteam

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.