Evenement explorer.exe

kakenette Messages postés 218 Date d'inscription dimanche 1 mai 2005 Statut Membre Dernière intervention 15 novembre 2009 - 17 nov. 2008 à 18:59
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019 - 19 nov. 2008 à 21:28
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ProgId" content="Word.Document" />
<meta name="Generator" content="Microsoft Word 10" />
<meta name="Originator" content="Microsoft Word 10" />
<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Chome%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:ApplyBreakingRules/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:宋体;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:SimSun;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
Bonjour, J'aurai voulu savoir si il y a un moyen comme les
antivirus de par exemple détecter quand un dossier ou fichier est déplacé, créé
etc... Avant même que explorer.exe le fasse afin de pouvoir le stopper avant.


J'ai remarquer que les antivirus quand ils détecte un virus, le fichier est
supprimer stopper ou encore bloquer avant que même explorer fasse l'action. Il
renvoie le message comme quoi le fichier est introuvable etc...


J'ai déjà regardé dans ce sens afin de pouvoir faire pareil en vb. Je suis
arrivée à faire un truc très similaire mais pas encore assez rapide.
L'antivirus passe avant mon application. ( Je pense pas que c’est une question
de vitesse mais plutôt d’intercepter les événements )


Exemple : Dans mon application j'ai indiqué que le fichier Test.exe est un
fichier dangereux. Je compresse ce fichier Test.exe dans un zip afin de pouvoir
faire le test sur le bureau. Quand je l'extrait mon application fait bien sont
travail, elle détecte et neutralise direct le fichier Test.exe mais quand j'ai
un antivirus qui lui aussi a ce fichier dans ça base de donnée, quand j'extrait
le fichier, l'antivirus détecte et neutralise, Explorer envoie un message
" le fichier est introuvable " et mon application a rien vue. Pour
elle c'est comme si j’avais rien fait. Car je pense justement que les antivirus
comme "kaspersky" regarde les événements de explorer ou du système et
bloque l'action avant de la faire. Comme un genre de détour. Explorer passe par
l'antivirus qui lui si OK renvoie a explorer...


Avez vous une idée comment cella fonctionne ? Je suis vraiment intéressée…







Kakenette

5 réponses

PCPT Messages postés 13272 Date d'inscription lundi 13 décembre 2004 Statut Membre Dernière intervention 3 février 2018 47
17 nov. 2008 à 19:17
salut,

tu ne peux pas arrêter l'action avant qu'elle est lieu ^^

par contre tu peux légèrement avant l'affichage, mais la modif est déjà effective

regarde dans les sources de renfield, quelque chose comme "foldernotifier"

<hr size="2" width="100%" />
Prenez un instant pour répondre à [sujet-SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp 
0
PCPT Messages postés 13272 Date d'inscription lundi 13 décembre 2004 Statut Membre Dernière intervention 3 février 2018 47
17 nov. 2008 à 19:24
0
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
17 nov. 2008 à 21:21
Si si PCPT, on peut.
Il "suffit" de hooker les APIs.

ciao...
BruNews, MVP VC++
0
kakenette Messages postés 218 Date d'inscription dimanche 1 mai 2005 Statut Membre Dernière intervention 15 novembre 2009 1
19 nov. 2008 à 21:16
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ProgId" content="Word.Document" />
<meta name="Generator" content="Microsoft Word 10" />
<meta name="Originator" content="Microsoft Word 10" />
<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Chome%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:ApplyBreakingRules/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:宋体;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:SimSun;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
Donc c'est un peux se que je me disait, Hooker... BruNews
peut tu m'en dire un peux plus... ? Donc explorer utiliserai quel API pour déplacer
un dossier? Comment hooker une dll ? Et puis ça peut être dangereux pour le système
si on fait une erreur ... ?





kakenette
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
19 nov. 2008 à 21:28
Faudra d'abord te mettre au C pour envisager ce genre de sport.

un exemple en kernel mode:
http://www.cppfrance.com/code.aspx?ID=36941
un autre: http://www.cppfrance.com/code.aspx?ID=39993

plus simple en user mode:
http://www.cppfrance.com/code.aspx?ID=30610

ciao...
BruNews, MVP VC++
0
Rejoignez-nous