| Autor |
Beitrag |
offes
Hält's aus hier
Beiträge: 3
|
Verfasst: Mi 31.05.06 08:18
Hallo, i need help with my real-time scanner.
I'm create real-time file scanner in Delphi and use shellnotification, but this not work for browsing explorer files folder and running exe. (Creating hook on Shell32.dll it's there same problems).
I'm have a old FileMon sourcecode, but this don't work
offens
|
|
digi_c
      
Beiträge: 1905
W98, XP
D7 PE, Lazarus, WinAVR
|
Verfasst: Mi 31.05.06 09:20
So you want to hook every Fileacess? I guess it's not as easy as it seems, IMHO Filemon uses a .VXD to get acess.
What you wan't to create? A on-acess virus scanner? 
|
|
offes 
Hält's aus hier
Beiträge: 3
|
Verfasst: Mi 31.05.06 09:32
digi_c hat folgendes geschrieben: | So you want to hook every Fileacess? I guess it's not as easy as it seems, IMHO Filemon uses a .VXD to get acess.
What you wan't to create? A on-acess virus scanner?  |
I'm creating anti-trojans and anti-adware scanner with real-time monitoring. I'm hooking kernel32.dll for "winexec" and "createprocess", Shell32.dll for "ShellExecute" but i don't know how to get files from explorer browsing and application file access. Mayby i must hook a "FindFirst" and get search record ?
|
|
digi_c
      
Beiträge: 1905
W98, XP
D7 PE, Lazarus, WinAVR
|
Verfasst: Mi 31.05.06 10:08
You might use a API Spy tool to identify the right API calls. But i guess that are a lot of because the Explorer searches the files to display them, opens them to make thumbnails and so on...
|
|
0xCC
      
Beiträge: 150
|
Verfasst: Mi 31.05.06 12:11
hook CreateFileW in kernel32
|
|
offes 
Hält's aus hier
Beiträge: 3
|
Verfasst: Mi 31.05.06 18:32
0xCC hat folgendes geschrieben: | | hook CreateFileW in kernel32 |
I'm hooked CreateFileW, CreateFile, CreateFileEx, but I'm have still problem with browsing explorer (FindFirst and FindNext don't work).
Maybe any idea ?
|
|
Ivo@CoMRoK
      
Beiträge: 258
Win XP
D3 Prof., D7 Pe.
|
Verfasst: Mi 31.05.06 18:40
You could get the new Directory of the Explorer. If there is a change get the Text of the directory's label (is this the right name  I would say "Adressleiste" in German  ).
_________________ Fällt der Bauer tot vom Traktor, stand am Waldrand ein Reaktor.
Ein altes indianisches Sprichwort besagt:Es kann gefährlich sein gelben Schnee zu essen.
|
|
0xCC
      
Beiträge: 150
|
Verfasst: Mi 31.05.06 19:34
offes hat folgendes geschrieben: | 0xCC hat folgendes geschrieben: | | hook CreateFileW in kernel32 |
I'm hooked CreateFileW, CreateFile, CreateFileEx, but I'm have still problem with browsing explorer (FindFirst and FindNext don't work).
Maybe any idea ? |
hook the widechar version of those 2 (FindFirstFileW and FindNextFileW).
those are always called, even if the prog uses the ansi version, which in turn calls the widechar version
|
|
digi_c
      
Beiträge: 1905
W98, XP
D7 PE, Lazarus, WinAVR
|
Verfasst: Do 01.06.06 07:21
@Ivo I guess that this is quite an idea but wouldn't solve the problem of hooking in explorer like dialoges(fileopen,filesave,..) where files could be executed, too.
Nevertheles I don't the the need to build a on-acess scanner for spyware. If I understand the concept right, you try to avoid the installation of spyware before their installation, right?
|
|