Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

C# Grab names of files created and modified by specific process

Title really says it all. I am trying to figure out a way to list all the files the have been modified or created even deleted through a specific process. I am attempting to accomplish this via C# any help is greatly appriciated.
(Feb 19, 2019 05:04 AM)-PUBG- Wrote:  Title really says it all. I am trying to figure out a way to list all the files the have been modified or created even deleted through a specific process. I am attempting to accomplish this via C# any help is greatly appriciated.

I would suggest this: https://stackoverflow.com/questions/4350...om-windows
(Feb 19, 2019 11:29 AM)Abruptum Wrote:  I would suggest this: https://stackoverflow.com/questions/4350...om-windows

Not even close to the right answer. This doesn't detect what process created/modified the file and it is also directory specific... You'd have to hook file writing methods within the target process, and that is the only real answer here.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Feb 19, 2019 03:39 PM)0xDEAD10CC Wrote:  Not even close to the right answer. This doesn't detect what process created/modified the file and it is also directory specific... You'd have to hook file writing methods within the target process, and that is the only real answer here.

Yes, you are right o.O seems like i totally misunderstood the question :/
Can you provide any source for your method ? i want to know how it can be done.
If proper created can it detect files changes runned through process chains ?

Really interesting topic.
(Feb 20, 2019 10:34 AM)Abruptum Wrote:  Yes, you are right o.O seems like i totally misunderstood the question :/
Can you provide any source for your method ? i want to know how it can be done.
If proper created can it detect files changes runned through process chains ?

Really interesting topic.

Your hooks on functions like NtCreateFile, etc would indicate the changes, and would be applicable to the process you've created the hooks for.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by 1Artemis1Nov 7, 2020 05:24 PM 2 160 Nov 7, 2020 05:24 PM
Last Post: 1Artemis1
[C] by chrizatorJul 22, 2018 05:09 AM 4 224 Jul 22, 2018 05:09 AM
Last Post: Anzee
[Java] by GlushkoJun 13, 2018 11:13 PM 3 640 Jun 13, 2018 11:13 PM
Last Post: hostov