Deviare2 | professional hooking engine | Reverse Engineering library
kandi X-RAY | Deviare2 Summary
kandi X-RAY | Deviare2 Summary
Deflect API Hooks
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Deviare2
Deviare2 Key Features
Deviare2 Examples and Code Snippets
Community Discussions
Trending Discussions on Deviare2
QUESTION
For a very peculiar requirement of a DLP software, I'm trying to detect OpenFileDialogs and cancel the file selection action, after capturing the selected file.
How am I trying to do this?
I put a global hook on the mouse and keyboard. I detect all actions that the user can perform to select a file in the OpenFileDialog window.
What I could not do until now is to detect if the window is an OpenFileDialog by hwnd.
Why am I trying this way?
I am a high level programmer and tried initially with windows hooks, without success. I tried with easyhook and deviare2. There seems to be no simpler way to put a global hook in a COM (IFileDialog) component call.
Is there any way to detect if a window is the default Windows OpenFileDialog window by hwnd?
...ANSWER
Answered 2017-Jul-04 at 16:09As a partial solution (an adversary can mimic such a dialog), I suggest checking if the window a standard dialog and if it is, does it have "Save" in the caption (you can well put a better ctriterium here):
First, let's check class
:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms633574(v=vs.85).aspx
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Deviare2
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page