The legitimate PCILeech project allows security researchers to perform DMA attacks for penetration testing. Here is the process: