Skip to content

Latest commit

 

History

History

ZDMA

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

LightingZDMA - PCIe to Thunderbolt:

This project contains software and HDL code for the LightingZDMA board.

Once flashed it may be used together with the PCILeech Direct Memory Access (DMA) Attack Toolkit or MemProcFS - The Memory Process File System to perform DMA attacks, dump memory or perform research.

⚠️ ZDMA have additional requirements. Make sure the requirements are met before purchase.

Capabilities:

  • Retrieve memory from the target system over Thunderbolt in excess of 1000MB/s.
  • Access physical memory of target system unless protected with VT-d/IOMMU.
  • Raw PCIe Transaction Layer Packet (TLP) access.

For information about more capabilities check out the general readme and info wiki pages at: PCILeech, MemProcFS and LeechCore for information about features and capabilities.

For information about other supported FPGA based devices please check out PCILeech FPGA.

The Hardware: LightingZDMA

The LightingZDMA PCIe gen2 x4 board contains a powerful Artix7 100T FPGA which allows for good performance and also interesting applications besides PCILeech/MemProcFS. The LightingZDMA may be purchased from: lightingz.store. For more information about the hardware please check out lightingz.store. Please note that the LightingZDMA is sold by a 3rd party and not by the PCILeech project itself!

The picture below depicts an LightingZDMA. The ZDMA contains a Thunderbolt port for data transfer and an update port for easy updating without the need for additional hardware.

Requirements:

  • A PCIe x4 or PCIe x16 slot on the target computer.
  • A Thunderbolt capable port on the controlling computer.
  • 64-bit Windows or on the controlling computer. 64-bit (x64) Ubuntu will also work.

Windows Driver:

ZDMA requires a signed Windows kernel driver. Download it here. Right click on the .inf file and select "install" in the popup menu that appears to install the driver. Additionally ZDMA requires the file leechcore_driver.dll. This file should be included in the latest downloads of PCILeech and MemProcFS.

Linux Driver:

ZDMA requires Linux driver to be compiled from source to a kernel module (.ko). Download it here. Additionally ZDMA requires the file leechcore_driver.so. This file should be included in the latest downloads of PCILeech and MemProcFS.

⚠️ The Linux driver currently does not fully support IOMMU (enabled by default). This will result in failed tx. It's possible to disable it in BIOS settings or via kernel boot parameter.

Flashing:

Please note that this instruction applies to the built-in JTAG update port.

  1. Install Vivado WebPACK or Lab Edition (only for flashing).
  2. Build PCILeech ZDMA (see below) alternatively download and unzip pre-built binary (see below in releases section).
  3. Open Vivado.
  4. Open Hardware Manager found on the Vivado start screen.
  5. Open target. Make sure the USB cable is connected to the JTAG port of the ZDMA device.
  6. Flash using Xilinx Vivado Hardware Manager (shown below). Make sure you flash xc7a100t_0 (the other fpga must not be flashed)! Please select memory part: is25lp128f.
  7. Finished !!!

Building (100T version):

  1. Install Xilinx Vivado WebPACK 2023.2 or later.
  2. Open Vivado Tcl Shell command prompt.
  3. cd into the directory of ZDMA (forward slash instead of backslash in path).
  4. Run source vivado_generate_project_100t.tcl -notrace to generate required project files.
  5. Run source vivado_build_100t.tcl -notrace to generate Xilinx proprietary IP cores and build bitstream.
  6. Finished !!!

Building the project may take a very long time (~1 hour).

The PCIe device will show as Xilinx Ethernet Adapter with Device ID 0x0666 on the target system by default. For instructions how to change the device id and other advanced build properties check out the build readme for information.

Other Notes:

The completed solution contains Xilinx proprietary IP cores licensed under the Xilinx CORE LICENSE AGREEMENT. This project as-is published on Github contains no Xilinx proprietary IP. Published source code are licensed under the MIT License. The end user that have downloaded the no-charge Vivado WebPACK from Xilinx will have the proper licenses and will be able to re-generate Xilinx proprietary IP cores by running the build detailed above.

Support PCILeech/MemProcFS development:

Thank You LightingZDMA for supporting the PCILeech project 💖

Some other hardware sellers have chosen not to support the project! If you think PCILeech and/or MemProcFS is awesome or if you had a use for it it's now possible to support the project via Github Sponsors: https://github.com/sponsors/ufrisk.

To all my sponsors, Thank You 💖

Releases / Version History:

v4.14

  • Initial Release
  • Download pre-built binaries below:
    • ZDMA SHA256: 759c5ac97ffe742b38aa0c9ff4f62e49af01f32e9eb85697edf5692b00269475

v4.15

  • Bug fixes for PCIe x4 interface.
  • Support for disabling device when Thunderbolt is not connected (not enabled in pre-built version).
  • Download pre-built binaries below:
    • ZDMA SHA256: 8084d838d2cd3715ffe52219a6faed599d40f228b0639eacdc337000cf89c419

v4.16

  • skipped

v4.17

  • Bug fixes: stability improvements.
  • ⚠️ Upgrading to 4.17 will break compatibility with previous firmware for FPGA1 (Thunderbolt). New LeechDMA firmware for FPGA1 (v4+) must be flashed in conjunction with v4.17. FPGA1 v4+ firmware will be provided by ZDMA.
  • Download pre-built binaries below:
    • ZDMA SHA256: 2ccb460973fdd875d1d5190c81b0e9da0c5b3bc02cd39cedf1feb9585bb9adfe