Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

AppcertDLLs do not work in GUI apps

lapazlapaz Member Posts: 1
edited July 29 in NTDEV
Hi, I was trying to automatically inject a dll to every process (including GUI) whenever it is started by a user . My DLL hooks DoDragDrop method of winapi and communicates with server to decide allow or disallow the drag & drop process. I use easyhook (particularly [this](http://easyhook.github.io/tutorials/nativeremotehook.html) tutorial) for hooking part. I created a gist for my code : [Gist](https://gist.github.com/lapaz17/51d1ccd5b7adb089ce650f0050c5c188):

In [this ](https://www.chadduffey.com/2020/06/Windows-Persistence.html)url it says: Doesn’t work reliably against GUI applications. Stick to console apps. No wonder it didn't work in microsoft edge, and chrome.
I also tried code parts in these urls:
[first](https://www.securityfocus.com/archive/1/540310)
[second](https://www.cyberforum.ru/win-api/thread304222.html)
Finally , I already [certificated ](https://en.wikipedia.org/wiki/DLL_injection)my dll.
Is there any other way apart from appcertdlls? Thank you in advance.
Edit: I can't use appinitdlls, some users might have secure boot enabled.
Edit2: Seems like dlls in some tutorials is under system32 ([this](https://stackoverflow.com/questions/4354445/appcertdlls-process-creation-slowdown-on-win32-caused-by-virus), and [this](http://rsdn.org/forum/asm/2308423.1)) , and I moved [mine] (https://github.com/lapaz17/ss/blob/main/test.png) under system32 too, but it did not
work.
Looks like embedding urls from mobile does not work.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 15 November 2021 Live, Online
Writing WDF Drivers TBD Live, Online
Developing Minifilters 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online