Change / replace Exe on the fly
Whenever I download an update in firefox and apply it, Kaspersky Antivirus warns me that the FIREFOX.EXE file has been modified. I want to know how they do it. Is it possible to make a simple program to demonstrate this trick. Like the executable, it initially displays "Hello, World!" at the prompt and when replacing / modifying the sample executable, it should display "Hello, World! Mod".
Thank.
source to share
An easy way is to use the FindFirstChangeNotification method . But my guess is that Anti-Virus connects at a lower level using a system hook or some other mechanism.
source to share
I don't know how Firefox performs its updates, but there are a number of common approaches:
-
On a file system that permits it (like NTFS), then rename the current executable .exe, write in its replacement, and then move on to the new one.
-
You have a small launcher that does any update to the main exe before switching to it.
-
Various tricks related to creating temporary exes, jumping on them and bouncing backwards, etc.
source to share