ufrisk / pcileech

Direct Memory Access (DMA) Attack Software
GNU Affero General Public License v3.0
5.04k stars 735 forks source link

init TypeError: #270

Closed Lennox7746 closed 1 year ago

Lennox7746 commented 1 year ago

Hello,when i running the example code ,it tell me :

vmm = memprocfs.Vmm(['-device', 'C:/Dumps/WIN10-X64-1909-18363-1.mem']) Traceback (most recent call last): File "", line 1, in TypeError: Vmm.init(): Initialization of vmm failed.

How can i do for this? My systerm is win11 and the cpu is AMD R7 7840HS. Hope the solution,thanks !

ufrisk commented 1 year ago

Hi,

This API call tries to initialize using a memory dump file named: C:/Dumps/WIN10-X64-1909-18363-1.mem.

Since you mention your system I'm assuming you wish to target the FPGA. That would be:

vmm = memprocfs.Vmm(['-device', 'fpga'])

or you may have to use a memory map as well:

vmm = memprocfs.Vmm(['-device', 'fpga', '-memmap', 'C:\\Path\\To\\My\\memmap.txt'])

Please let me know how this goes and if the issue is resolved (then close this issue).

And best wishes with your Python DMA project :)

Lennox7746 commented 1 year ago

I know the reason, my mother board is AMD,when i come home, I use the computer which mother board is AMD too ( A320-pro), it not work yet,but now, I'm in my friend's home and use his computer that mother board is Intel ( Z690 ) , the same DMA board is working well,I think I have to buy a intel mother board for using DMA board............

ufrisk commented 1 year ago

If you're on AMD just use the memory map approach as I linked to in the above post and things will be fine. No need to purchase new hardware.

Lennox7746 commented 1 year ago

I'm sorry sir,I don't find the link about AMD, can you give me the link in the comment ? Thanks !

Lennox7746 commented 1 year ago

And I have a question, according to the pictures in the project, my board should be LeetDMA, but I cannot find the corresponding FPGA project for LeetDMA. May I ask which FPGA project corresponds to LeetDMA?

ufrisk commented 1 year ago

LeetDMA is compatible with the PCIeSquirrel FPGA bitstream/project.

Lennox7746 commented 1 year ago

OK, get it .Thank you very much !