ufrisk / pcileech

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

Can pcileech run with ZYNQ chips? #214

Closed xingkong158 closed 3 months ago

xingkong158 commented 1 year ago

Hi, i just want to run pcileech with zynq chips, and If I integrate linux system in arm, can I get data from pcileech? do you have any source code for it ??

thank you!

ufrisk commented 1 year ago

Hi,

Huge thanks for the sponsorship. Many thanks :)

PCILeech will run on ARM, both 32-bit and 64-bit ARM.

However I do not have a PCILeech connector for the Zynq. It would require me to write the communication protocol between the Zynq ARM CPU and the PCILeech FPGA firmware. It's absolutely doable but it would require a bit of work. I do not have code for it right now, but it's an interesting idea. Sadly I'm a bit too busy until the end of the year.

I would expect latencies to be much lower (almost non-existant) if this is implemented properly.

xingkong158 commented 1 year ago

thank you so much! i will wait for you support ARM

xingkong158 commented 1 year ago

do you have other contect imfomations? i want ask you some personal issues. thanks

ufrisk commented 1 year ago

To clarify, PCILeech and MemProcFS already run fine on ARM.

It's not supported on the Zynq though. I would have to write a connector for it. This would require a bit of work.

Please contact me at: ulf.frisk@memsec.se

zijingsh commented 1 year ago

@ufrisk hello ,When can I adapt zynq chip

ufrisk commented 1 year ago

This project have unfortunately stalled. The connector between the ARM and the Physical Layer wasn't behaving as it should and I moved on to other tasks.

I believe I have a good driver for it though on the Linux side, but it's something in the physical layer and/or flashing that wasn't working out quite how it should.

Also my main business case for this disappeared so I've moved on to other tasks. I may or may not look into this again later in the summer. If I have a success I'll let you know :)

I know others have this working though as private projects so it should certainly be possible.

CottonCollecter commented 1 year ago

@xingkong158 Have you figure out run this project to zynq? i have same idea too!

xingkong158 commented 1 year ago

yes, i am working on it. how about you?

BLK434 @.***> 于2023年6月11日周日 02:04写道:

@xingkong158 https://github.com/xingkong158 Have you figure out run this project to zynq? i have same idea too!

— Reply to this email directly, view it on GitHub https://github.com/ufrisk/pcileech/issues/214#issuecomment-1585756546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAJLP4IDHTS3I6APOBODXKSZKZANCNFSM6AAAAAAR3OW2X4 . You are receiving this because you were mentioned.Message ID: @.***>

CottonCollecter commented 1 year ago

I just move pcieleech on zynq 7100 PL i'm trying use AXI-STREAM to community PL PS each other

xingkong158 commented 1 year ago

did you bypass about New val update?

BLK434 @.***> 于2023年6月15日周四 22:19写道:

I just move pcieleech on zynq 7100 PL i'm trying use AXI-STREAM to community PL PS each other

— Reply to this email directly, view it on GitHub https://github.com/ufrisk/pcileech/issues/214#issuecomment-1593159549, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAJMMQQ4RKXGCKLAWM2TXLMKXXANCNFSM6AAAAAAR3OW2X4 . You are receiving this because you were mentioned.Message ID: @.***>

SubCookie commented 1 year ago

Hopefully this can help you: https://github.com/Cr4sh/zc_pcie_dma

xingkong158 commented 1 year ago

thank u so much brother, how is your project going??

SubCookie @.***> 于2023年6月17日周六 06:28写道:

Hopefully this can help you: https://github.com/Cr4sh/zc_pcie_dma

— Reply to this email directly, view it on GitHub https://github.com/ufrisk/pcileech/issues/214#issuecomment-1595388770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAJP3YEGOHIVMZMI6PALXLTM2HANCNFSM6AAAAAAR3OW2X4 . You are receiving this because you were mentioned.Message ID: @.***>

xingkong158 commented 1 year ago

hi, about new device emulation, you are working on it? And how is it? Will it be a perfect emulation with real devices? and would I still make a driver for it if I cloned a real device? Other things Can you customize a source code for me and not share it with anyone else? We can cooperate, and I can offer payment to you or explore other cooperative models. U know so many factories doing DMA with pcileech, they will add pcileech more easily to detect, so if we can cooperate, and not share to more people, we can get more safety and make a more perfect product. My Studio can design dma board, and combiner with 2K 144hz(like NATV2),and we can make more amazing products if we can cooperate. Please think about it.

Ulf Frisk @.***> 于2022年11月10日周四 04:37写道:

Hi,

Huge thanks for the sponsorship. Many thanks :)

PCILeech will run on ARM, both 32-bit and 64-bit ARM.

However I do not have a PCILeech connector for the Zynq. It would require me to write the communication protocol between the Zynq ARM CPU and the PCILeech FPGA firmware. It's absolutely doable but it would require a bit of work. I do not have code for it right now, but it's an interesting idea. Sadly I'm a bit too busy until the end of the year.

I would expect latencies to be much lower (almost non-existant) if this is implemented properly.

— Reply to this email directly, view it on GitHub https://github.com/ufrisk/pcileech/issues/214#issuecomment-1309346430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAJIV2AGAVGNN34W4PVTWHQDPBANCNFSM6AAAAAAR3OW2X4 . You are receiving this because you authored the thread.Message ID: @.***>

ufrisk commented 1 year ago

@xingkong158 I'm currently working on it. Or rather I will start working on it again when I'm back home from some vacation.

It will allow you to programmatically emulate a PCIe BAR device memory region. In theory this together with some customized config space would allow you to emulate a real device. In reality I suspect it will be much more complicated than this and that it will be quite hard to emulate a real device, at least for some devices. Mainly due to latency.

This is a code change on the C/C++ side. This will not be a firmware change. But it's most likely 1-2 months off.

I'd prefer not to get involved with anything related to game hacking or selling products directly designed for that purpose. My tools weren't designed for this purpose - they were designed for the infosec and to some degree the forensics markets. I don't really mind that my tools are used for it though, but I'd still like not to get involved for various reasons. Thanks for understanding.

xingkong158 commented 1 year ago

OK, thanks brother, i know what you mean. In fact i know it not only work for game cheat, it has more application scenarios, i want to working on other things. for example. i want to make a board, it will gether Pcileech and combiner(2k 144hz) and more function in a board, we can sell this board to person. They can use it do anythings, we just support board. How do you think this?

Ulf Frisk @.***> 于2023年7月13日周四 01:42写道:

@xingkong158 https://github.com/xingkong158 I'm currently working on it. Or rather I will start working on it again when I'm back home from some vacation.

It will allow you to programmatically emulate a PCIe BAR device memory region. In theory this together with some customized config space would allow you to emulate a real device. In reality I suspect it will be much more complicated than this and that it will be quite hard to emulate a real device, at least for some devices. Mainly due to latency.

This is a code change on the C/C++ side. This will not be a firmware change. But it's most likely 1-2 months off.

I'd prefer not to get involved with anything related to game hacking or selling products directly designed for that purpose. My tools weren't designed for this purpose - they were designed for the infosec and to some degree the forensics markets. I don't really mind that my tools are used for it though, but I'd still like not to get involved for various reasons. Thanks for understanding.

— Reply to this email directly, view it on GitHub https://github.com/ufrisk/pcileech/issues/214#issuecomment-1632950336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAJJ5WADUHA3GCHDNDADXP3OZ3ANCNFSM6AAAAAAR3OW2X4 . You are receiving this because you were mentioned.Message ID: @.***>

CottonCollecter commented 1 year ago

OK, thanks brother, i know what you mean. In fact i know it not only work for game cheat, it has more application scenarios, i want to working on other things. for example. i want to make a board, it will gether Pcileech and combiner(2k 144hz) and more function in a board, we can sell this board to person. They can use it do anythings, we just support board. How do you think this? Ulf Frisk @.> 于2023年7月13日周四 01:42写道: @xingkong158 https://github.com/xingkong158 I'm currently working on it. Or rather I will start working on it again when I'm back home from some vacation. It will allow you to programmatically emulate a PCIe BAR device memory region. In theory this together with some customized config space would allow you to emulate a real device. In reality I suspect it will be much more complicated than this and that it will be quite hard to emulate a real device, at least for some devices. Mainly due to latency. This is a code change on the C/C++ side. This will not be a firmware change. But it's most likely 1-2 months off. I'd prefer not to get involved with anything related to game hacking or selling products directly designed for that purpose. My tools weren't designed for this purpose - they were designed for the infosec and to some degree the forensics markets. I don't really mind that my tools are used for it though, but I'd still like not to get involved for various reasons. Thanks for understanding. — Reply to this email directly, view it on GitHub <#214 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5VAJJ5WADUHA3GCHDNDADXP3OZ3ANCNFSM6AAAAAAR3OW2X4 . You are receiving this because you were mentioned.Message ID: @.>

Could you contact me via my email on my profile? i have interest.

ufrisk commented 3 months ago

I'm closing this issue due to old age.