flat assembler
Message board for the users of flat assembler.

Index > Windows > How do Inject directx9.dll my proc ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1847
Roman 06 Dec 2024, 12:54
I want inject my proc Draw to game Commandos strike force (this game using directx9 dll)
Post 06 Dec 2024, 12:54
View user's profile Send private message Reply with quote
Core i7



Joined: 14 Nov 2024
Posts: 28
Location: Socket in motherboard
Core i7 07 Dec 2024, 05:41
It is not clear what you want to do - inject d3d9.dll into your process, or your process into the game "Commandos strike force". In principle, it does not matter, since in both cases the task is solved in the same way. The program "CFF-Exporer" can add DLL modules to a ready program (Import Rebuild). If you describe the question in more detail, it will be easier to get the right answer.
Post 07 Dec 2024, 05:41
View user's profile Send private message Reply with quote
MatQuasar3



Joined: 04 Nov 2024
Posts: 44
MatQuasar3 07 Dec 2024, 10:38
Ali.Z made one injector for minesweeper.exe, it uses WriteProcessMemory API, maybe you can take a look:
https://board.flatassembler.net/topic.php?t=21714
Post 07 Dec 2024, 10:38
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1847
Roman 07 Dec 2024, 17:55
Write my own d3d9.dll not easy task.
But how I understood this is one right way.
Write own dll.

https://otterhacker.github.io/Malware/Remote%20DLL%20Injection.html


Last edited by Roman on 11 Dec 2024, 17:14; edited 1 time in total
Post 07 Dec 2024, 17:55
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 732
Ali.Z 10 Dec 2024, 02:41
Roman wrote:
Write my own d3d9.dll not easy task.


based on this, it seems like you want to create a fake d3d9.dll thats is placed in executable directory and redirects all calls to the original dll, except intercepting calls of interest, like swapping and presenting buffers to the gpu.

if so then yes, there are tools that will create dummy fake functions and pass them to the original dll, except that i dont recall any names, so you have to search for that.

_________________
Asm For Wise Humans
Post 10 Dec 2024, 02:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.