ca devrait enfin marcher comme ca
darcs-hash:20050926171247-6d78a-22bbda4f9041c7f70b1b75fa83b6dd2e5e225295.gz
This commit is contained in:
parent
08e04ce89e
commit
aaa962dfc6
1 changed files with 6 additions and 4 deletions
|
@ -79,11 +79,9 @@ for log in filtre :
|
|||
resultat_virus = motif_virus.match(log)
|
||||
resultat_flood = motif_flood.match(log)
|
||||
|
||||
ip_src = resultat_p2p.group(3)
|
||||
verif = iptools.AddrInNets (actuel["ip_src"],reseau)
|
||||
|
||||
|
||||
if resultat_p2p :
|
||||
ip_src = resultat_p2p.group(3)
|
||||
verif = iptools.AddrInNets (actuel["ip_src"],reseau)
|
||||
if verif :
|
||||
date = resultat_p2p.group(1)
|
||||
id_p2p = int(protocole_p2p[resultat_p2p.group(2)])
|
||||
|
@ -103,6 +101,8 @@ for log in filtre :
|
|||
# On teste si le log contient des virus
|
||||
########################################
|
||||
elif resultat_virus :
|
||||
ip_src = resultat_p2p.group(3)
|
||||
verif = iptools.AddrInNets (actuel["ip_src"],reseau)
|
||||
if verif :
|
||||
date = resultat_virus.group(1)
|
||||
ip_src = resultat_virus.group(3)
|
||||
|
@ -119,6 +119,8 @@ for log in filtre :
|
|||
|
||||
|
||||
elif resultat_flood :
|
||||
ip_src = resultat_p2p.group(3)
|
||||
verif = iptools.AddrInNets (actuel["ip_src"],reseau)
|
||||
if verif :
|
||||
date = resultat_flood.group(1)
|
||||
ip_src = resultat_flood.group(3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue